aboutsummaryrefslogtreecommitdiff
path: root/lib/email
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-06 03:06:54 +0700
committerShulhan <ms@kilabit.info>2024-03-06 03:06:54 +0700
commit1e7cb99f42bcd41e98326bd9406d3cecfb2a4542 (patch)
tree9981f1ebc98670f516939374012646314dda663f /lib/email
parent16607dc13477ee53d95ee0295192643f6e726652 (diff)
downloadpakakeh.go-1e7cb99f42bcd41e98326bd9406d3cecfb2a4542.tar.xz
all: conform with linter gosec, ineffasign, and makezero
Some of warnings from those linter are false positives, so we just annotated them.
Diffstat (limited to 'lib/email')
-rw-r--r--lib/email/body.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/email/body.go b/lib/email/body.go
index 07970fae..91ebcb04 100644
--- a/lib/email/body.go
+++ b/lib/email/body.go
@@ -241,7 +241,7 @@ func (body *Body) Simple() (out []byte) {
case 1:
default:
if out[x-1] != cr && out[x] != lf {
- out = append(out, "\r\n"...)
+ out = append(out, "\r\n"...) //nolint:makezero
}
}