Run go fmt again

This commit is contained in:
Jan Philipp Timme 2018-12-29 22:02:45 +01:00
parent 8ca26b3d9d
commit 4ae5f3e500
1 changed files with 8 additions and 8 deletions

16
main.go
View File

@ -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
}