aboutsummaryrefslogtreecommitdiffstats
path: root/worker/lib
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-02-26 21:37:57 +0100
committerRobin Jarry <robin@jarry.cc>2023-02-26 21:48:43 +0100
commit30d8f8dd213b86bd34c501d7820a33fd441cc267 (patch)
tree669e1a63f771e2f668a03b2cbc0296b168882abb /worker/lib
parentbba7159756908f092655bdf6db091daf9eb74f76 (diff)
downloadaerc-30d8f8dd213b86bd34c501d7820a33fd441cc267.tar.gz
lint: always run golangci-lint@latest
Do not store the dependency in tools.go as there may be conflicts with some indirect dependencies of aerc. Run gofumpt and golangci-lint from their latest tagged release. This should fix issues with go 1.20. Bonus, it drains a bit of fat from go.sum. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'worker/lib')
-rw-r--r--worker/lib/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/lib/parse.go b/worker/lib/parse.go
index 89e79684..c2923c86 100644
--- a/worker/lib/parse.go
+++ b/worker/lib/parse.go
@@ -179,7 +179,7 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) {
if err != nil {
// still return a valid struct plus a sentinel date parsing error
// if only the date parsing failed
- err = fmt.Errorf("%w: %v", DateParseError, err)
+ err = fmt.Errorf("%w: %v", DateParseError, err) //nolint:errorlint // can only use %w once
}
return &models.Envelope{
Date: date,