Skip to content

Commit a5368c2

Browse files
fix(lint): add return after t.Fatal in checker_test.go for SA5011
Fix remaining staticcheck SA5011 warning by adding return statement after t.Fatal in the second test function. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 246ff2c commit a5368c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/updatecheck/checker_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func TestChecker_CheckNow_NoUpdate(t *testing.T) {
6969

7070
if info == nil {
7171
t.Fatal("CheckNow returned nil")
72+
return // unreachable but satisfies staticcheck SA5011
7273
}
7374

7475
if info.UpdateAvailable {

0 commit comments

Comments
 (0)