From 40534570200ed066977283bb3c207752566b1c6a Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 20 Sep 2024 21:15:13 +0200 Subject: [PATCH] Refactor TestSendError_ErrorMulti formatting Reformatted the instantiation of the SendError struct to improve readability. This helps maintain consistency and clarity in the code base for better collaboration and future maintenance. --- senderror_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/senderror_test.go b/senderror_test.go index 9a9b1ec..e04b7ee 100644 --- a/senderror_test.go +++ b/senderror_test.go @@ -156,8 +156,10 @@ func TestSendError_IsFail(t *testing.T) { func TestSendError_ErrorMulti(t *testing.T) { expected := `ambiguous reason, check Msg.SendError for message specific reasons, ` + `affected recipient(s): , ` - err := &SendError{Reason: ErrAmbiguous, isTemp: false, affectedMsg: nil, - rcpt: []string{"", ""}} + err := &SendError{ + Reason: ErrAmbiguous, isTemp: false, affectedMsg: nil, + rcpt: []string{"", ""}, + } if err.Error() != expected { t.Errorf("error mismatch, expected: %s, got: %s", expected, err.Error()) }