Skip to content

Commit

Permalink
Merge pull request #9 from jf-tech/golint
Browse files Browse the repository at this point in the history
fix golint
  • Loading branch information
jf-tech authored Sep 14, 2020
2 parents b204c2d + c5206bb commit 1a52535
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,8 @@ func (r *failureReader) Read(p []byte) (int, error) {
}
if r.err != "" {
return length, errors.New(r.err)
} else {
return length, errors.New("test failure")
}
return length, errors.New("test failure")
}

func TestStripBOM_ReadFailure(t *testing.T) {
Expand Down

0 comments on commit 1a52535

Please sign in to comment.