From d63653ecdeb19c0fb4b3ea976c3e5ea96b408112 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 9 Jun 2019 14:54:27 -0400 Subject: commands/msg/copy: remove unnecessary code --- commands/msg/copy.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'commands') 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( -- cgit 1.4.1-2-gfad0