From 253caac5a41f47e7de275893cdf6e20d127ada9d Mon Sep 17 00:00:00 2001 From: Max Lerebourg Date: Thu, 29 Sep 2022 22:19:35 +0200 Subject: [PATCH] :bento: lint --- bouncer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bouncer.go b/bouncer.go index b92539f..b660376 100644 --- a/bouncer.go +++ b/bouncer.go @@ -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,