Skip to content

Commit

Permalink
chore: remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Jul 9, 2022
1 parent 725e605 commit ff89925
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/utils/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func CompareVersions(v1, op, v2 string) bool {
func compare(v1, v2 string) int {
v1, v2 = replacer.Replace(v1), replacer.Replace(v2)
fields1, fields2 := strings.Split(v1, "."), strings.Split(v2, ".")

ver1, ver2 := strsToInts(fields1), strsToInts(fields2)
ver1len, ver2len := len(ver1), len(ver2)
shorter := mathx.MinInt(ver1len, ver2len)
Expand Down

0 comments on commit ff89925

Please sign in to comment.