Update Go version and clean up SMTP test suite

The Go version has been updated to 1.22 in the .golangci.toml file for compatibility reasons. Additionally, unnecessary white space has been removed from the smtp/smtp_test.go file to maximize code efficiency and readability.
This commit is contained in:
Winni Neessen 2024-02-08 16:51:25 +01:00
parent a864be059c
commit 7a549242ae
Signed by: wneessen
GPG key ID: 385AC9889632126E
2 changed files with 2 additions and 3 deletions

View file

@ -3,9 +3,9 @@
## SPDX-License-Identifier: MIT
[run]
go = "1.20"
go = "1.22"
tests = true
[linters]
enable = ["stylecheck", "whitespace", "containedctx", "contextcheck", "decorder",
"errname", "errorlint", "gofmt", "gofumpt"]
"errname", "errorlint", "gofmt", "gofumpt"]

View file

@ -1088,7 +1088,6 @@ Subject: SendMail test
SendMail is working for me.
`, "\n", "\r\n", -1)))
if err != nil {
t.Errorf("%v", err)
}