mirror of https://github.com/golang/go.git
cmd/fix: rename confusing boolean
("truth" says nothing about what is true.
This boolean tracks whether the file was fixed.)
Change-Id: I29bb80c4fad3ca7f2ae96e50e16f6cde484b374f
Reviewed-on: https://go-review.googlesource.com/c/go/+/240556
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
09833da6b4
commit
2f4368c174
|
|
@ -21,11 +21,11 @@ var gotypesFix = fix{
|
|||
}
|
||||
|
||||
func gotypes(f *ast.File) bool {
|
||||
truth := fixGoTypes(f)
|
||||
fixed := fixGoTypes(f)
|
||||
if fixGoExact(f) {
|
||||
truth = true
|
||||
fixed = true
|
||||
}
|
||||
return truth
|
||||
return fixed
|
||||
}
|
||||
|
||||
func fixGoTypes(f *ast.File) bool {
|
||||
|
|
|
|||
Loading…
Reference in New Issue