Skip to content

Commit 50c6508

Browse files
authored
Simplify to command.Run
1 parent 4d0b278 commit 50c6508

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd/godotenv/cmd.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ example
6060
command.Stderr = os.Stderr
6161

6262
signal.Ignore(os.Interrupt)
63-
if err := command.Start(); err != nil {
64-
log.Fatal(err)
65-
}
66-
67-
if err := command.Wait(); err != nil {
63+
if err := command.Run(); err != nil {
6864
log.Fatal(err)
6965
}
7066
}

0 commit comments

Comments
 (0)