Skip to content

Commit 1a52535

Browse files
authored
Merge pull request #9 from jf-tech/golint
fix golint
2 parents b204c2d + c5206bb commit 1a52535

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

readers_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,8 @@ func (r *failureReader) Read(p []byte) (int, error) {
280280
}
281281
if r.err != "" {
282282
return length, errors.New(r.err)
283-
} else {
284-
return length, errors.New("test failure")
285283
}
284+
return length, errors.New("test failure")
286285
}
287286

288287
func TestStripBOM_ReadFailure(t *testing.T) {

0 commit comments

Comments
 (0)