Skip to content

Commit

Permalink
fix: Fixed version number parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
vemilyus committed May 10, 2024
1 parent 38cef52 commit f02d74f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/main/kotlin/io/v47/jaffree/process/ProcessRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ internal class ProcessRunner<T>(
}

helperFutures.forEach {
if (!it.isDone)
it.cancel(true)

it.get()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ internal class VersionInfoProcessHandler : LinesProcessHandler<VersionInfo>() {

return VersionInfo(
vm.value,
vm.groupValues[1].toInt(),
vm.groupValues.getOrNull(2)?.toInt() ?: 0,
vm.groupValues.getOrNull(3)?.toInt() ?: 0,
vm.groupValues[1].ifBlank { "0" }.toInt(),
vm.groupValues[2].ifBlank { "0" }.toInt(),
vm.groupValues[3].ifBlank { "0" }.toInt(),
enabledFeatures,
disabledFeatures
)
Expand Down

0 comments on commit f02d74f

Please sign in to comment.