Skip to content

Commit 05d3590

Browse files
intel352claude
andcommitted
fix: add return after t.Fatal for remaining SA5011 warnings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d4cb3f8 commit 05d3590

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

provider/openai_test.go

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

499499
if toolEvent == nil {
500500
t.Fatal("expected tool_call event")
501+
return
501502
}
502503
if toolEvent.Tool.ID != "call_xyz" {
503504
t.Errorf("expected tool ID call_xyz, got %s", toolEvent.Tool.ID)

ratchetplugin/browser_manager_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ func TestNewBrowserManager(t *testing.T) {
1010
bm := NewBrowserManager(true)
1111
if bm == nil {
1212
t.Fatal("expected non-nil BrowserManager")
13+
return
1314
}
1415
if bm.browser != nil {
1516
t.Error("expected browser to be nil before first GetPage call (lazy init)")

ratchetplugin/ratchetplugin_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func TestNewSecretGuard(t *testing.T) {
144144
sg := NewSecretGuard(p, "file")
145145
if sg == nil {
146146
t.Fatal("NewSecretGuard returned nil")
147+
return
147148
}
148149
if sg.provider == nil {
149150
t.Fatal("provider is nil")

0 commit comments

Comments
 (0)