mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 03:35:33 -04:00
lint(revive): fix unreachable-code violation (#7979)
This commit is contained in:
@@ -101,7 +101,6 @@ linters:
|
|||||||
- name: unnecessary-stmt
|
- name: unnecessary-stmt
|
||||||
|
|
||||||
- name: unreachable-code
|
- name: unreachable-code
|
||||||
disabled: true
|
|
||||||
|
|
||||||
- name: unused-parameter
|
- name: unused-parameter
|
||||||
arguments:
|
arguments:
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ func TestHandlerStartupInvalidAddress(t *testing.T) {
|
|||||||
|
|
||||||
err := h.Startup()
|
err := h.Startup()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatal("Expected error for invalid address format")
|
|
||||||
defer h.Shutdown()
|
defer h.Shutdown()
|
||||||
|
t.Fatal("Expected error for invalid address format")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user