Skip to content

Commit

Permalink
Simplify to command.Run
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSLevy committed Sep 14, 2020
1 parent 4d0b278 commit 50c6508
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/godotenv/cmd.go
Expand Up @@ -60,11 +60,7 @@ example
command.Stderr = os.Stderr

signal.Ignore(os.Interrupt)
if err := command.Start(); err != nil {
log.Fatal(err)
}

if err := command.Wait(); err != nil {
if err := command.Run(); err != nil {
log.Fatal(err)
}
}

0 comments on commit 50c6508

Please sign in to comment.