Fixes golint warning about "if block ends with a return statement, so drop this else and outdent its block".
Change-Id: I6fc8724f586efcb6e2ed92ee36be421d3e9a8c80
Reviewed-on: https://go-review.googlesource.com/c/144137
Reviewed-by: Ralph Corderoy <ralph@inputplus.co.uk>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
}
if x < y {
return -1
- } else {
- return +1
}
+ return +1
}
func comparePrerelease(x, y string) int {
if ix != iy {
if ix {
return -1
- } else {
- return +1
}
+ return +1
}
if ix {
if len(dx) < len(dy) {
}
if dx < dy {
return -1
- } else {
- return +1
}
+ return +1
}
}
if x == "" {
return -1
- } else {
- return +1
}
+ return +1
}
func nextIdent(x string) (dx, rest string) {