Run go fmt again
This commit is contained in:
parent
8ca26b3d9d
commit
4ae5f3e500
16
main.go
16
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue