mirror of
https://github.com/golang/go
synced 2024-11-26 04:58:00 -07:00
fix comparison
This commit is contained in:
parent
284d4333e7
commit
b41219c975
@ -24,7 +24,7 @@ var buildtagFix = fix{
|
||||
}
|
||||
|
||||
func buildtag(f *ast.File) bool {
|
||||
if version.Compare(*goVersion, buildtagGoVersionCutoff) == -1 {
|
||||
if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user