Skip to content

Commit 8e7fb98

Browse files
committed
Add explicit return after t.Fatal in agent test
golangci-lint v2.10.1 (used in CI) trips SA5011 on this pattern even though t.Fatal halts — newer staticcheck versions handle it correctly. Adding the explicit return is harmless and unblocks the lint check.
1 parent d6e9289 commit 8e7fb98

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/harness/agent_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func TestRegisterAgent(t *testing.T) {
1616
agent := FindAgent("test")
1717
if agent == nil {
1818
t.Fatal("expected to find registered agent")
19+
return
1920
}
2021
if agent.Name != "Test Agent" {
2122
t.Errorf("expected name 'Test Agent', got %q", agent.Name)

0 commit comments

Comments
 (0)