mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 05:40:50 +01:00
Fix nil pointer deref in part_test.go
This commit is contained in:
parent
e909bd5499
commit
bf755cd944
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ func TestPartEncoding(t *testing.T) {
|
|||
part := m.newPart(TypeTextPlain, WithPartEncoding(tt.enc), nil)
|
||||
if part == nil {
|
||||
t.Errorf("newPart() WithPartEncoding() failed: no part returned")
|
||||
return
|
||||
}
|
||||
if part.enc.String() != tt.want {
|
||||
t.Errorf("newPart() WithPartEncoding() failed: expected encoding: %s, got: %s", tt.want,
|
||||
|
|
Loading…
Reference in a new issue