Refactor: consolidate ErrNonTLSConnection variable

The variable ErrNonTLSConnection has been simplified from a multi-line declaration to a single-line declaration. This increases code readability and maintains consistency with Go conventions.
This commit is contained in:
Winni Neessen 2024-10-01 20:32:41 +02:00
parent 15b9ddf067
commit f823112a4d
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -36,9 +36,7 @@ import (
"github.com/wneessen/go-mail/log"
)
var (
ErrNonTLSConnection = errors.New("connection is not using TLS")
)
var ErrNonTLSConnection = errors.New("connection is not using TLS")
// A Client represents a client connection to an SMTP server.
type Client struct {