Other: Linter fixes after bumping linter version

This commit is contained in:
James Houlahan
2022-10-11 18:04:39 +02:00
parent 4a5c411665
commit 14a578f319
23 changed files with 273 additions and 206 deletions

View File

@ -31,7 +31,7 @@ import (
)
const (
MaxAttachmentSize = 7 * (1 << 20) // MaxAttachmentSize 7 MB total size of all attachments.
MaxTotalAttachmentSize = 7 * (1 << 20)
MaxCompressedFilesCount = 6
)
@ -166,7 +166,7 @@ func zipFiles(filenames []string) (io.Reader, error) {
return nil, nil
}
buf := newLimitedBuffer(MaxAttachmentSize)
buf := newLimitedBuffer(MaxTotalAttachmentSize)
w := zip.NewWriter(buf)
defer w.Close() //nolint:errcheck