chore: fix sabotage spelling in nolint comments (#7892)

Signed-off-by: futurehua <futurehua@outlook.com>
pull/7896/head
futurehua 2026-07-18 16:14:38 +08:00 committed by GitHub
parent 986753a7c6
commit 93c0721156
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -836,7 +836,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
},
}
resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabatoge I think
resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabotage I think
if err != nil {
return nil, fmt.Errorf("performing request: %v", err)
}

View File

@ -246,7 +246,7 @@ func (s StaticResponse) ServeHTTP(w http.ResponseWriter, r *http.Request, next H
// write response body
if statusCode != http.StatusEarlyHints && body != "" {
fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabatoge your own config
fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabotage your own config
}
// continue handling after Early Hints as they are not the final response