Run go fmt again

This commit is contained in:
Jan Philipp Timme 2018-12-29 22:02:45 +01:00
parent 8ca26b3d9d
commit 4ae5f3e500

16
main.go
View File

@ -19,8 +19,8 @@ func argParse() {
mailqCommandArgsPtr := flag.String("mailqCommandArgs", "", "Optional arguments to pass to mailqCommand") mailqCommandArgsPtr := flag.String("mailqCommandArgs", "", "Optional arguments to pass to mailqCommand")
flag.Parse() flag.Parse()
settings["inputMode"] = *inputModePtr settings["inputMode"] = *inputModePtr
settings["mailqCommand"] = *mailqCommandPtr settings["mailqCommand"] = *mailqCommandPtr
settings["mailqCommandArgs"] = *mailqCommandArgsPtr settings["mailqCommandArgs"] = *mailqCommandArgsPtr
} }
func main() { func main() {
@ -53,15 +53,15 @@ func readFromStdin() ([]parser.QEntry, error) {
func readFromCmd(cmd *exec.Cmd) ([]parser.QEntry, error) { func readFromCmd(cmd *exec.Cmd) ([]parser.QEntry, error) {
stdout, err := cmd.StdoutPipe() stdout, err := cmd.StdoutPipe()
if err != nil { if err != nil {
return nil, err return nil, err
} }
if err := cmd.Start(); err != nil { if err := cmd.Start(); err != nil {
return nil, err return nil, err
} }
result, resultError := parser.ParseMailQ(stdout) result, resultError := parser.ParseMailQ(stdout)
if err := cmd.Wait(); err != nil { if err := cmd.Wait(); err != nil {
return nil, err return nil, err
} }
return result, resultError return result, resultError
} }