settings: Move one if check to else if

The map is always empty if the previous check was true

Change-Id: Id1f939d112789ab3c7da711636b40c8a4c23d507
This commit is contained in:
Luca Stefani
2022-01-03 13:16:16 +01:00
committed by Sam Mortimer
parent ebaa32ef9f
commit 2e050a5c98

View File

@@ -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
}
}