Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sivchari committed Sep 6, 2021
1 parent 1c14c6e commit 5cc7ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ var Analyzer = &analysis.Analyzer{
},
}

var f bool
var F bool

func init() {
Analyzer.Flags.BoolVar(&f, "f", false, "the force option will also run against code prior to Go1.17")
Analyzer.Flags.BoolVar(&F, "f", false, "the force option will also run against code prior to Go1.17")
}

func run(pass *analysis.Pass) (interface{}, error) {
Expand Down Expand Up @@ -192,5 +192,5 @@ func checkVersion() float64 {
}

func isForceExec() bool {
return f
return F
}

0 comments on commit 5cc7ddf

Please sign in to comment.