feat: add golangci-lint for go linting

This commit is contained in:
Stavros
2026-05-09 18:00:41 +03:00
parent 1b18e68ce0
commit 3da9a5b18b
16 changed files with 43 additions and 30 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ func (m *ContextMiddleware) cookieAuth(ctx context.Context, uuid string) (*model
}
if !m.auth.IsEmailWhitelisted(userContext.OAuth.Email) {
m.auth.DeleteSession(ctx, uuid)
m.auth.DeleteSession(ctx, uuid) //nolint:errcheck
return nil, nil, fmt.Errorf("email from session cookie not whitelisted: %s", userContext.OAuth.Email)
}
}