Skip to content

Commit f9dbe7c

Browse files
committed
fix minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <[email protected]>
1 parent 6a9bb39 commit f9dbe7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reloader/reloader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func TestNoRead(t *testing.T) {
4242
}
4343
_, err := New(f.Name(), noop, testErrCb(t))
4444
if err == nil {
45-
t.Fatalf("Expected New to return error when permission denied.")
4645
readFile = oldReadFile
46+
t.Fatalf("Expected New to return error when permission denied.")
4747
}
4848
readFile = oldReadFile
4949
}

0 commit comments

Comments
 (0)