Skip to content

Commit

Permalink
fix: staticcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Aug 3, 2021
1 parent f269528 commit e20bcc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ func TestLimitWriter(t *testing.T) {
t.Fatal("Expected to write 3 bytes with no errors")
}
err = writer.Flush()
if err != nil {
t.Fatal(err)
}
}
3 changes: 1 addition & 2 deletions msgio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ type testIoReadWriter struct {

func TestReadWriterClose(t *testing.T) {
r, w := io.Pipe()
var rw ReadWriteCloser
rw = NewReadWriter(testIoReadWriter{r, w})
rw := NewReadWriter(testIoReadWriter{r, w})
SubtestReaderWriterClose(t, rw)
}

Expand Down

0 comments on commit e20bcc3

Please sign in to comment.