Skip to content

Commit

Permalink
fix: add writer nil error on test for prevent panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Sep 16, 2024
1 parent e41c3e9 commit bc43a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func Test_Encode_ErrorOnNewWriter(t *testing.T) {
New: func() interface{} {
return &flateWriter{
writer: nil,
err: errors.New("new writer error"),
}
},
},
Expand Down

0 comments on commit bc43a14

Please sign in to comment.