Skip to content

Commit a630950

Browse files
fix: suppress nolintlint for platform-specific contextcheck
The contextcheck linter only triggers on macOS (where EnsureKeychainAccess has a real implementation), but on Linux the stub doesn't trigger it, causing nolintlint to complain the directive is unused. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 218c53c commit a630950

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/googleauth/accounts_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (ms *ManageServer) handleOAuthCallback(w http.ResponseWriter, r *http.Reque
294294
}
295295

296296
// Pre-flight: ensure keychain is accessible before storing token
297-
if err := secrets.EnsureKeychainAccess(); err != nil { //nolint:contextcheck // keychain ops don't use context
297+
if err := secrets.EnsureKeychainAccess(); err != nil { //nolint:contextcheck,nolintlint // keychain ops don't use context; nolint unused on non-Darwin
298298
w.WriteHeader(http.StatusInternalServerError)
299299
renderErrorPage(w, "Keychain is locked: "+err.Error())
300300

0 commit comments

Comments
 (0)