🍱 lint

This commit is contained in:
Max Lerebourg
2022-09-29 22:19:35 +02:00
parent e122ce488c
commit 253caac5a4
+4 -1
View File
@@ -86,7 +86,10 @@ type Bouncer struct {
// New creates the crowdsec bouncer plugin.
func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {
validateParams(config)
err := validateParams(config)
if (err != nil) {
return nil, err
}
bouncer := &Bouncer{
next: next,