Skip to content

Commit

Permalink
Fixed logic error with new log lib usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SindreBrurberg committed Nov 2, 2021
1 parent 5a0e86a commit 320b3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {
if logDir != "" {
log.SetPrefix("vili")
cloaser := log.SetOutputFolder(logDir)
if cloaser != nil {
if cloaser == nil {
log.Fatal("Unable to sett logdir")
}
defer cloaser()
Expand Down

0 comments on commit 320b3aa

Please sign in to comment.