lint(revive): fix unreachable-code violation (#7979)

This commit is contained in:
Ville Vesilehto
2026-03-30 03:02:39 +03:00
committed by GitHub
parent 6720959b8b
commit 0e9a51410a
2 changed files with 1 additions and 2 deletions

View File

@@ -101,7 +101,6 @@ linters:
- name: unnecessary-stmt
- name: unreachable-code
disabled: true
- name: unused-parameter
arguments:

View File

@@ -157,7 +157,7 @@ func TestHandlerStartupInvalidAddress(t *testing.T) {
err := h.Startup()
if err == nil {
t.Fatal("Expected error for invalid address format")
defer h.Shutdown()
t.Fatal("Expected error for invalid address format")
}
}