diff options
Diffstat (limited to 'commands/msgview/open.go')
-rw-r--r-- | commands/msgview/open.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index bcfe2b48..5b199120 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -37,7 +37,7 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { if part, err := p.Msg.BodyStructure.PartAtIndex(p.Index); err == nil { mimeType := fmt.Sprintf("%s/%s", part.MIMEType, part.MIMESubType) - if exts, _ := mime.ExtensionsByType(mimeType); exts != nil && len(exts) > 0 { + if exts, _ := mime.ExtensionsByType(mimeType); len(exts) > 0 { extension = exts[0] } } |