fix(blogo): add check for nil plugins in Use method

This commit is contained in:
Guz
2025-01-27 18:40:47 -03:00
parent ada8ad734e
commit a8a61d0897

View File

@@ -190,7 +190,9 @@ func (b *blogo) Use(p plugin.Plugin) {
} }
} }
b.plugins = append(b.plugins, p) if p != nil {
b.plugins = append(b.plugins, p)
}
} }
func (b *blogo) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (b *blogo) ServeHTTP(w http.ResponseWriter, r *http.Request) {