Skip to content

Commit c7b2536

Browse files
Fix hasNumericOrEmptyPatch method (#2268)
1 parent 39914b3 commit c7b2536

File tree

1 file changed

+1
-1
lines changed
  • utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/utils

1 file changed

+1
-1
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/utils/Version.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ data class Version(
2929
(another.patch.isEmpty() || patch.isNotEmpty() && patch.toInt() >= another.patch.toInt())
3030
}
3131

32-
fun hasNumericOrEmptyPatch(): Boolean = patch.toIntOrNull() != null
32+
fun hasNumericOrEmptyPatch(): Boolean = patch.isEmpty() || patch.toIntOrNull() != null
3333
}
3434

3535
fun String.parseVersion(): Version? {

0 commit comments

Comments
 (0)