Skip to content

Fix staticcheck SA5011 false positives in function_lifecycle_test.go#56

Merged
creydr merged 1 commit into
functions-dev:mainfrom
creydr:fix-linter-issue
Apr 14, 2026
Merged

Fix staticcheck SA5011 false positives in function_lifecycle_test.go#56
creydr merged 1 commit into
functions-dev:mainfrom
creydr:fix-linter-issue

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented Apr 14, 2026

Add explicit return statements after t.Fatal() calls to make it clear to staticcheck that execution terminates, preventing false positive nil pointer dereference warnings.

This resolves intermittent lint failures in the merge queue where staticcheck SA5011 would complain about potential nil dereferences even though t.Fatal() terminates execution.

Add explicit return statements after t.Fatal() calls to make it clear
to staticcheck that execution terminates, preventing false positive
nil pointer dereference warnings.

This resolves intermittent lint failures in the merge queue where
staticcheck SA5011 would complain about potential nil dereferences
even though t.Fatal() terminates execution.
@creydr creydr enabled auto-merge April 14, 2026 15:59
@creydr creydr added this pull request to the merge queue Apr 14, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 14, 2026
@creydr creydr added this pull request to the merge queue Apr 14, 2026
Merged via the queue into functions-dev:main with commit 9e4420d Apr 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant