💄 fix lint

This commit is contained in:
Max Lerebourg
2022-12-04 21:56:03 +01:00
parent c311d8357d
commit a17e082ba3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
package crowdsec_bouncer_traefik_plugin package crowdsec_bouncer_traefik_plugin //nolint:revive,stylecheck
import ( import (
"context" "context"
@@ -36,7 +36,7 @@ func TestServeHTTP(t *testing.T) {
func TestNew(t *testing.T) { func TestNew(t *testing.T) {
type args struct { type args struct {
ctx context.Context ctx context.Context //nolint:containedctx
next http.Handler next http.Handler
config *configuration.Config config *configuration.Config
name string name string
+1 -1
View File
@@ -15,7 +15,7 @@ import (
logger "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/logger" logger "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/logger"
) )
// Enums for crowdsec mode // Enums for crowdsec mode.
const ( const (
StreamMode = "stream" StreamMode = "stream"
LiveMode = "live" LiveMode = "live"