Skip to content

Commit

Permalink
don't use non-constant for string formatting
Browse files Browse the repository at this point in the history
found by go1.24rc
  • Loading branch information
mjl- committed Jan 24, 2025
1 parent 3e26953 commit 132efdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtpserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ func (c *conn) cmdRcpt(p *parser) {
if alias != nil {
c.recipients = append(c.recipients, recipient{fpath, nil, &rcptAlias{*alias, canonical}})
} else if dest.SMTPError != "" {
xsmtpServerErrorf(codes{dest.SMTPErrorCode, dest.SMTPErrorSecode}, dest.SMTPErrorMsg)
xsmtpServerErrorf(codes{dest.SMTPErrorCode, dest.SMTPErrorSecode}, "%s", dest.SMTPErrorMsg)
} else {
c.recipients = append(c.recipients, recipient{fpath, &rcptAccount{accountName, dest, canonical}, nil})
}
Expand Down

0 comments on commit 132efdd

Please sign in to comment.