cmd/go: refactor mvsReqs.Max for better readability #39042
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
At head (go version devel +e90b0ce68b Sat May 2 20:22:19 2020 +0000 darwin/amd64) I see this function in src/go/cmd/go/internal/modload/mvs.go:
I believe that "return v1" is wrong if v1 is empty, and the code should be something like:
but I am not confident of the semantics this function requires. Moreover, since Compare protects against bad parses, it's possible no checking is required:
The text was updated successfully, but these errors were encountered: