Skip to content

Commit

Permalink
fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiz-aqua committed Aug 20, 2024
1 parent 926b524 commit a8e2b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs/customsmtp/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ func (c *Client) Auth(a Auth) error {
resp64 := make([]byte, encoding.EncodedLen(len(resp)))
encoding.Encode(resp64, resp)
respEncoded := string(resp64)
authString := fmt.Sprintf("AUTH %s %s", mech, respEncoded)
code, msg64, err := c.cmd(0, strings.TrimSpace(authString))
authString := strings.TrimSpace(fmt.Sprintf("AUTH %s %s", mech, respEncoded))
code, msg64, err := c.cmd(0, authString)

Check failure on line 198 in outputs/customsmtp/smtp.go

View workflow job for this annotation

GitHub Actions / Build

printf: non-constant format string in call to (*github.com/aquasecurity/postee/v2/outputs/customsmtp.Client).cmd (govet)
for err == nil {
var msg []byte
switch code {
Expand Down

0 comments on commit a8e2b72

Please sign in to comment.