Skip to content

Commit

Permalink
fix minor unreachable code caused by t.Fatal (#6283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abirdcfly authored Aug 12, 2022
1 parent 00734a6 commit 7cd35f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reloader/reloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func TestNoRead(t *testing.T) {
}
_, err := New(f.Name(), noop, testErrCb(t))
if err == nil {
t.Fatalf("Expected New to return error when permission denied.")
readFile = oldReadFile
t.Fatalf("Expected New to return error when permission denied.")
}
readFile = oldReadFile
}
Expand Down

0 comments on commit 7cd35f4

Please sign in to comment.