diff --git a/app/src/main/java/yokai/domain/base/models/Version.kt b/app/src/main/java/yokai/domain/base/models/Version.kt index 4d5287b623..8c730c34a5 100644 --- a/app/src/main/java/yokai/domain/base/models/Version.kt +++ b/app/src/main/java/yokai/domain/base/models/Version.kt @@ -26,9 +26,9 @@ data class Version( patch.compareTo(other.patch)).compareTo(0) // if semver is equal, check version stage (release (3) > beta (2) > alpha (1)) if (rt == 0) rt = stage.weight.compareTo(other.stage.weight) - // if stage is also equal, check if it's a hotfix (1.2.3 vs 1.2.3.1) + // check if it's a hotfix (1.2.3 vs 1.2.3.1) if (rt == 0) rt = hotfix.compareTo(other.hotfix) - // if everything are equal, we compare build number. Still only matters on unstable (beta and nightly) releases + // if everything are equal, we compare build number. This only matters on unstable (beta and nightly) releases if (rt == 0) rt = build.compareTo(other.build) return rt