Skip to content

Commit

Permalink
fix boolean statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzafame committed Jun 25, 2020
1 parent 853d8bd commit 6ec35df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func configFromEnv() Config {
case "stderr":
cfg.Stderr = true
case "file":
if cfg.File != "" {
if cfg.File == "" {
fmt.Fprint(os.Stderr, "please specify a GOLOG_FILE value to write to")
}
}
Expand Down

0 comments on commit 6ec35df

Please sign in to comment.