Skip to content

Commit

Permalink
fix: replace flag.BoolFunc with flag.Func (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmzane authored Oct 17, 2023
1 parent 4ed295d commit bc45156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sloglint.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func flags(opts *Options) flag.FlagSet {
fs := flag.NewFlagSet("sloglint", flag.ContinueOnError)

boolVar := func(value *bool, name, usage string) {
fs.BoolFunc(name, usage, func(s string) error {
fs.Func(name, usage, func(s string) error {
v, err := strconv.ParseBool(s)
*value = v
return err
Expand Down

0 comments on commit bc45156

Please sign in to comment.