Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Nov 14, 2023
1 parent 065c551 commit 70ee08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ linters:
disable-all: true
enable:
- gofmt
- gocritic
- gosimple
- govet
- ineffassign
Expand All @@ -20,4 +19,4 @@ linters-settings:
staticcheck:
checks:
- all
- '-SA1019'
- "-SA1019"
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 70ee08b

Please sign in to comment.