!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:
@@ -121,9 +121,8 @@ public class Utils {
|
|||||||
int minorB = Integer.parseInt(b.split("\\.")[1]);
|
int minorB = Integer.parseInt(b.split("\\.")[1]);
|
||||||
|
|
||||||
// Return early and allow if we allow major version upgrades
|
// Return early and allow if we allow major version upgrades
|
||||||
return (allowMajorUpgrades && majorA > majorB) || (majorA == majorB && minorA >= minorB)
|
return (allowMajorUpgrades && majorA > majorB)
|
||||||
|
|| (majorA == majorB && minorA >= minorB);
|
||||||
return majorA == majorB && minorA >= minorB;
|
|
||||||
} catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {
|
} catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user