!fixup Updater: Allow Updater to handle major upgrades via property

* Missing semicolon in the final PS, but more importantly,
  unreachable statement.

Change-Id: Ie064e750e6c91e2689eb8d3faca459b4c30c1ab3
This commit is contained in:
Nolen Johnson
2025-02-17 23:43:19 -05:00
parent c9159bf47b
commit e92031f1ec

View File

@@ -121,9 +121,8 @@ public class Utils {
int minorB = Integer.parseInt(b.split("\\.")[1]);
// Return early and allow if we allow major version upgrades
return (allowMajorUpgrades && majorA > majorB) || (majorA == majorB && minorA >= minorB)
return majorA == majorB && minorA >= minorB;
return (allowMajorUpgrades && majorA > majorB)
|| (majorA == majorB && minorA >= minorB);
} catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {
return false;
}