mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Remove warning when failing to parse the version number.
Fixes https://github.com/cbeust/kobalt/issues/475
This commit is contained in:
parent
c6b180dd71
commit
50b31114f6
1 changed files with 6 additions and 2 deletions
|
@ -29,8 +29,12 @@ class StringVersion(val version: String) : Comparable<StringVersion> {
|
|||
if (v1 < v2) return -1
|
||||
else if (v1 > v2) return 1
|
||||
} catch(ex: NumberFormatException) {
|
||||
warn("Couldn't parse version $version or $other")
|
||||
return -1
|
||||
if (version == other.toString()) {
|
||||
return 0
|
||||
} else {
|
||||
log(2, "Couldn't parse version $version or $other")
|
||||
return -1
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue