Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
JenswBE committed Dec 29, 2023
1 parent addafa5 commit 9ead86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions send/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ func createSTARTTLSClient(host string, port uint, allowInsecureTLS bool) (*smtp.
// Switch to STARTTLS
tlsConfig := &tls.Config{
ServerName: host,
InsecureSkipVerify: allowInsecureTLS,
InsecureSkipVerify: allowInsecureTLS, // #nosec G402
}
err = client.StartTLS(tlsConfig) // #nosec G402
err = client.StartTLS(tlsConfig)
if err != nil {
return nil, fmt.Errorf("failed to switch to TLS using STARTTLS on server %s: %w", hostPort, err)
}
Expand Down

0 comments on commit 9ead86d

Please sign in to comment.