From 7a549242aec27796449483386f62eed334dcf4bc Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 8 Feb 2024 16:51:25 +0100 Subject: [PATCH] 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. --- .golangci.toml | 4 ++-- smtp/smtp_test.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.golangci.toml b/.golangci.toml index ef4d48a..2501c6a 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -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"] \ No newline at end of file + "errname", "errorlint", "gofmt", "gofumpt"] diff --git a/smtp/smtp_test.go b/smtp/smtp_test.go index 73f4fa5..c829e21 100644 --- a/smtp/smtp_test.go +++ b/smtp/smtp_test.go @@ -1088,7 +1088,6 @@ Subject: SendMail test SendMail is working for me. `, "\n", "\r\n", -1))) - if err != nil { t.Errorf("%v", err) }