aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/copy.go')
-rw-r--r--commands/msg/copy.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/commands/msg/copy.go b/commands/msg/copy.go
index a68a22a2..44257a74 100644
--- a/commands/msg/copy.go
+++ b/commands/msg/copy.go
@@ -34,9 +34,7 @@ func (Copy) Execute(aerc *widgets.Aerc, args []string) error {
if err != nil {
return err
}
- var (
- createParents bool
- )
+ var createParents bool
for _, opt := range opts {
switch opt.Option {
case 'p':
@@ -54,8 +52,8 @@ func (Copy) Execute(aerc *widgets.Aerc, args []string) error {
}
store.Copy(uids, strings.Join(args[optind:], " "),
createParents, func(
- msg types.WorkerMessage) {
-
+ msg types.WorkerMessage,
+ ) {
switch msg := msg.(type) {
case *types.Done:
aerc.PushStatus("Messages copied.", 10*time.Second)