1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:04:54 -07:00

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:
Russ Cox 2020-06-29 14:10:24 -04:00
parent 09833da6b4
commit 2f4368c174

View File

@ -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 {