Skip to content

Commit

Permalink
Fix vet sugg. ret value walk
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchroeder committed May 28, 2023
1 parent 237d671 commit f38906b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ttfsample.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func walkDirectories(s string, sampleText []string) {
}
return nil
})
_ = err
default:
log.Printf("Walk arg is not a directory.")
}
Expand All @@ -117,7 +118,7 @@ func main() {
wantedText = flag.Args()
}
if *walk != "" {
_ = walkDirectories(*walk, wantedText)
walkDirectories(*walk, wantedText)
return
}

Expand Down

0 comments on commit f38906b

Please sign in to comment.