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 }