mirror of
https://github.com/coredns/coredns.git
synced 2026-04-04 19:25:40 -04:00
lint(revive): fix unreachable-code violation (#7979)
This commit is contained in:
@@ -101,7 +101,6 @@ linters:
|
||||
- name: unnecessary-stmt
|
||||
|
||||
- name: unreachable-code
|
||||
disabled: true
|
||||
|
||||
- name: unused-parameter
|
||||
arguments:
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user