diff options
Diffstat (limited to 'commands/compose/attach-key.go')
-rw-r--r-- | commands/compose/attach-key.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/commands/compose/attach-key.go b/commands/compose/attach-key.go index 208e9fd8..249decef 100644 --- a/commands/compose/attach-key.go +++ b/commands/compose/attach-key.go @@ -1,8 +1,6 @@ package compose import ( - "errors" - "git.sr.ht/~rjarry/aerc/widgets" ) @@ -21,10 +19,6 @@ func (AttachKey) Complete(aerc *widgets.Aerc, args []string) []string { } func (AttachKey) Execute(aerc *widgets.Aerc, args []string) error { - if len(args) != 1 { - return errors.New("Usage: attach-key") - } - composer, _ := aerc.SelectedTabContent().(*widgets.Composer) return composer.SetAttachKey(!composer.AttachKey()) |