summary refs log tree commit diff stats
path: root/commands
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
parentdd178262bb1d01f9f7d4710431547041bde52d89 (diff)
downloadaerc-d63653ecdeb19c0fb4b3ea976c3e5ea96b408112.tar.gz
commands/msg/copy: remove unnecessary code
Diffstat (limited to 'commands')
-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(
itle='Blame the previous revision' href='/akspecs/aerc/blame/doc/aerc-smtp.5.scd?h=0.6.0&id=fcdcd32de7118e1de1f8d94c380a0e80a64265ec'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60