Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e92031f1 authored by Nolen Johnson's avatar Nolen Johnson
Browse files

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

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

Change-Id: Ie064e750e6c91e2689eb8d3faca459b4c30c1ab3
parent c9159bf4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
        }