mirror of https://github.com/apache/druid.git
removes unnecessary checks (#11431)
* removes unnecessary checks * removes unnecessary checks
This commit is contained in:
parent
d0b4e55a6f
commit
18b8ac5349
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue