update golangci-lint (#328)

This commit is contained in:
Alessandro Ros
2023-07-24 19:59:05 +02:00
committed by GitHub
parent 101688b249
commit 356b88021d
4 changed files with 6 additions and 4 deletions

View File

@@ -1052,7 +1052,7 @@ func TestServerAuth(t *testing.T) {
onAnnounce: func(ctx *ServerHandlerOnAnnounceCtx) (*base.Response, error) {
err := auth.Validate(ctx.Request, "myuser", "mypass", nil, nil, "IPCAM", nonce)
if err != nil {
return &base.Response{
return &base.Response{ //nolint:nilerr
StatusCode: base.StatusUnauthorized,
Header: base.Header{
"WWW-Authenticate": auth.GenerateWWWAuthenticate(nil, "IPCAM", nonce),