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
-1
@@ -317,7 +317,7 @@ func crowdsecQuery(a *Bouncer, stringURL string) ([]byte) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
defer func (body io.ReadCloser) {
|
defer func (body io.ReadCloser) {
|
||||||
err := body.Close()
|
err = body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("failed to close body reader: %s", err)
|
log.Printf("failed to close body reader: %s", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user