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

Commit 2e050a5c authored by Luca Stefani's avatar Luca Stefani Committed by Sam Mortimer
Browse files

settings: Move one if check to else if

The map is always empty if the previous check was true

Change-Id: Id1f939d112789ab3c7da711636b40c8a4c23d507
parent ebaa32ef
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -270,9 +270,7 @@ public final class LineageSettings {

                        mValues.clear();
                        mValuesVersion = newValuesVersion;
                    }

                    if (mValues.containsKey(name)) {
                    } else if (mValues.containsKey(name)) {
                        return mValues.get(name);  // Could be null, that's OK -- negative caching
                    }
                }