From 70ee08b9b88fbada2924a5f31e6bc59b469ab553 Mon Sep 17 00:00:00 2001 From: Chris Dzombak Date: Mon, 13 Nov 2023 21:15:27 -0500 Subject: [PATCH] lint --- .golangci.yml | 3 +-- main.go | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c09db65..1943454 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,6 @@ linters: disable-all: true enable: - gofmt - - gocritic - gosimple - govet - ineffassign @@ -20,4 +19,4 @@ linters-settings: staticcheck: checks: - all - - '-SA1019' + - "-SA1019" diff --git a/main.go b/main.go index 2b5006d..33abf63 100644 --- a/main.go +++ b/main.go @@ -212,7 +212,7 @@ func processPayload(ctx context.Context, srv *gmail.Service, mdConv *md.Converte if err != nil { return "", nil, err } - outgoingBody = outgoingBody + partBody + outgoingBody += partBody for k, v := range partCidMap { cidMap[k] = v } @@ -257,7 +257,7 @@ func writeAttachmentFromPartReturningURLAndCIDAndPath(ctx context.Context, srv * attachmentFilename = messageID extCandidates, err := mime.ExtensionsByType(part.MimeType) if err != nil && extCandidates != nil && len(extCandidates) > 0 { - attachmentFilename = attachmentFilename + extCandidates[0] + attachmentFilename += extCandidates[0] } } fullFilePath := path.Join(dir, attachmentFilename) // full path to the attachment file on disk