Skip to content

Commit

Permalink
fix minor unreachable code caused by t.Fatal
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly committed Aug 11, 2022
1 parent 6a9bb39 commit f9dbe7c
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 @@ -42,8 +42,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 f9dbe7c

Please sign in to comment.