Skip to content

Commit

Permalink
Fix repo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MlgmXyysd committed Mar 29, 2020
1 parent 7fa7a8c commit a95e21a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,15 @@ public void setReleaseTypeLocal(String packageName, String relTypeString) {
notifyListeners();
}

@SuppressWarnings("ConstantConditions")
private ReleaseType getReleaseTypeLocal(String packageName) {
synchronized (mLocalReleaseTypesCache) {
if (mLocalReleaseTypesCache.containsKey(packageName))
return mLocalReleaseTypesCache.get(packageName);

String value = mModulePref.getString(packageName + "_release_type",
null);
ReleaseType result = ReleaseType.fromString(value);
ReleaseType result = (!TextUtils.isEmpty(value)) ? ReleaseType.fromString(value) : null;
mLocalReleaseTypesCache.put(packageName, result);
return result;
}
Expand Down

0 comments on commit a95e21a

Please sign in to comment.