Skip to content

Commit 7cd35f4

Browse files
authored
fix minor unreachable code caused by t.Fatal (#6283)
1 parent 00734a6 commit 7cd35f4

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
@@ -41,8 +41,8 @@ func TestNoRead(t *testing.T) {
4141
}
4242
_, err := New(f.Name(), noop, testErrCb(t))
4343
if err == nil {
44-
t.Fatalf("Expected New to return error when permission denied.")
4544
readFile = oldReadFile
45+
t.Fatalf("Expected New to return error when permission denied.")
4646
}
4747
readFile = oldReadFile
4848
}

0 commit comments

Comments
 (0)