aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-03-09 22:48:00 +0100
committerRobin Jarry <robin@jarry.cc>2022-03-12 21:00:23 +0100
commit4bc43d2741fa4904e51fc5da71d15b804c556c43 (patch)
tree1747e08585ef0c98a13d3477369b4f159071a762 /commands/compose
parent65ae87a524ebbb573626afe951d6cd29bc8b24cd (diff)
downloadaerc-4bc43d2741fa4904e51fc5da71d15b804c556c43.tar.gz
all: fix minor issues found by staticcheck
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/send.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 12bf155c..dbdb94f9 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -189,7 +189,7 @@ func newSendmailSender(ctx sendCtx) (io.WriteCloser, error) {
return nil, fmt.Errorf("no command specified")
}
bin := args[0]
- rs := make([]string, len(ctx.rcpts), len(ctx.rcpts))
+ rs := make([]string, len(ctx.rcpts))
for i := range ctx.rcpts {
rs[i] = ctx.rcpts[i].Address
}