removes unnecessary checks (#11431)

* removes unnecessary checks

* removes unnecessary checks
This commit is contained in:
Sandeep 2021-07-13 09:21:16 +08:00 committed by GitHub
parent d0b4e55a6f
commit 18b8ac5349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ public class PollingLookup extends LookupExtractor
return NullHandling.emptyToNullIfNeeded((String) cache.get(keyEquivalent));
}
finally {
if (cacheRefKeeper != null && cache != null) {
if (cache != null) {
cacheRefKeeper.doneWithIt();
}
}
@ -162,7 +162,7 @@ public class PollingLookup extends LookupExtractor
return cache.getKeys(valueEquivalent);
}
finally {
if (cacheRefKeeper != null && cache != null) {
if (cache != null) {
cacheRefKeeper.doneWithIt();
}
}