fix minor unreachable code caused by t.Fatal (#6283)

This commit is contained in:
Abirdcfly 2022-08-13 04:24:48 +08:00 committed by GitHub
parent 00734a6edf
commit 7cd35f43e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}