mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
fix lint
This commit is contained in:
+1
-2
@@ -304,7 +304,7 @@ func handleStreamCache(a *Bouncer, initialized bool) {
|
||||
a.crowdsecStreamHealthy = true
|
||||
}
|
||||
|
||||
func crowdsecQuery(a *Bouncer, stringURL string) ([]byte) {
|
||||
func crowdsecQuery(a *Bouncer, stringURL string) []byte {
|
||||
req, _ := http.NewRequest(http.MethodGet, stringURL, nil)
|
||||
req.Header.Add(crowdsecAuthHeader, a.crowdsecKey)
|
||||
res, err := a.client.Do(req)
|
||||
@@ -332,4 +332,3 @@ func crowdsecQuery(a *Bouncer, stringURL string) ([]byte) {
|
||||
}
|
||||
return body
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user