From 4ae5f3e500cd6cac3cbd85e787082a0c6abd7e98 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 29 Dec 2018 22:02:45 +0100 Subject: [PATCH] Run go fmt again --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 7277f94..62dbbd6 100644 --- a/main.go +++ b/main.go @@ -19,8 +19,8 @@ func argParse() { mailqCommandArgsPtr := flag.String("mailqCommandArgs", "", "Optional arguments to pass to mailqCommand") flag.Parse() settings["inputMode"] = *inputModePtr - settings["mailqCommand"] = *mailqCommandPtr - settings["mailqCommandArgs"] = *mailqCommandArgsPtr + settings["mailqCommand"] = *mailqCommandPtr + settings["mailqCommandArgs"] = *mailqCommandArgsPtr } func main() { @@ -53,15 +53,15 @@ func readFromStdin() ([]parser.QEntry, error) { func readFromCmd(cmd *exec.Cmd) ([]parser.QEntry, error) { stdout, err := cmd.StdoutPipe() - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } if err := cmd.Start(); err != nil { - return nil, err - } + return nil, err + } result, resultError := parser.ParseMailQ(stdout) if err := cmd.Wait(); err != nil { - return nil, err + return nil, err } return result, resultError }