From ca2cd00fe75863002145afcbfad1fe03f6258cfc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 18 May 2019 15:34:16 -0400 Subject: Fix scdoc & gofmt issues --- commands/account/reply.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'commands/account/reply.go') diff --git a/commands/account/reply.go b/commands/account/reply.go index e5b7679..f55d448 100644 --- a/commands/account/reply.go +++ b/commands/account/reply.go @@ -8,11 +8,11 @@ import ( gomail "net/mail" "strings" + "git.sr.ht/~sircmpwn/getopt" + "github.com/emersion/go-imap" "github.com/emersion/go-message" _ "github.com/emersion/go-message/charset" "github.com/emersion/go-message/mail" - "github.com/emersion/go-imap" - "git.sr.ht/~sircmpwn/getopt" "git.sr.ht/~sircmpwn/aerc/widgets" ) @@ -26,7 +26,7 @@ func Reply(aerc *widgets.Aerc, args []string) error { if err != nil { return err } - if optind != len(args) - 1 { + if optind != len(args)-1 { return errors.New("Usage: reply [-aq]") } var ( @@ -103,9 +103,9 @@ func Reply(aerc *widgets.Aerc, args []string) error { composer := widgets.NewComposer( aerc.Config(), acct.AccountConfig(), acct.Worker()). Defaults(map[string]string{ - "To": strings.Join(to, ","), - "Cc": strings.Join(cc, ","), - "Subject": subject, + "To": strings.Join(to, ","), + "Cc": strings.Join(cc, ","), + "Subject": subject, "In-Reply-To": msg.Envelope.MessageId, }). FocusTerminal() @@ -153,7 +153,7 @@ func Reply(aerc *widgets.Aerc, args []string) error { msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM"), msg.Envelope.From[0].PersonalName)) for scanner.Scan() { - io.WriteString(pipein, fmt.Sprintf("> %s\n",scanner.Text())) + io.WriteString(pipein, fmt.Sprintf("> %s\n", scanner.Text())) } pipein.Close() pipeout.Close() @@ -165,5 +165,3 @@ func Reply(aerc *widgets.Aerc, args []string) error { return nil } - - -- cgit v1.2.3