aboutsummaryrefslogtreecommitdiff
path: root/commands/msg/copy.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-09 14:54:27 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-09 14:54:27 -0400
commitd63653ecdeb19c0fb4b3ea976c3e5ea96b408112 (patch)
tree31e2044fc27afcad491ca3732974d677f50a06c3 /commands/msg/copy.go
parentdd178262bb1d01f9f7d4710431547041bde52d89 (diff)
commands/msg/copy: remove unnecessary code
Diffstat (limited to 'commands/msg/copy.go')
-rw-r--r--commands/msg/copy.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/commands/msg/copy.go b/commands/msg/copy.go
index 0d9836b..f862548 100644
--- a/commands/msg/copy.go
+++ b/commands/msg/copy.go
@@ -35,10 +35,6 @@ func Copy(aerc *widgets.Aerc, args []string) error {
}
widget := aerc.SelectedTab().(widgets.ProvidesMessage)
- acct := widget.SelectedAccount()
- if acct == nil {
- return errors.New("No account selected")
- }
msg := widget.SelectedMessage()
store := widget.Store()
store.Copy([]uint32{msg.Uid}, args[optind+1], createParents, func(