fix(blogo): add check for nil plugins in Use method
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user