#21: Fix ineffassign for GoLinter

This commit is contained in:
Winni Neessen 2022-06-13 10:33:50 +02:00
parent 04ab595f9a
commit e5abcb082d
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -325,6 +325,10 @@ func TestMsg_EnvelopeFrom(t *testing.T) {
return return
} }
gs, err = m.GetSender(false) gs, err = m.GetSender(false)
if err != nil {
t.Errorf("GetSender(true) failed: %s", err)
return
}
if gs != a { if gs != a {
t.Errorf("From() failed. Expected: %s, got: %s", a, gs) t.Errorf("From() failed. Expected: %s, got: %s", a, gs)
return return