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:
committed by
Sam Mortimer
parent
ebaa32ef9f
commit
2e050a5c98
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user