This is an automated email from the ASF dual-hosted git repository.
suneet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 18b8ac5 removes unnecessary checks (#11431)
18b8ac5 is described below
commit 18b8ac5349fd649ab5399e26beaf2ce4471a4bcf
Author: Sandeep <[email protected]>
AuthorDate: Tue Jul 13 09:21:16 2021 +0800
removes unnecessary checks (#11431)
* removes unnecessary checks
* removes unnecessary checks
---
.../src/main/java/org/apache/druid/server/lookup/PollingLookup.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/extensions-core/lookups-cached-single/src/main/java/org/apache/druid/server/lookup/PollingLookup.java
b/extensions-core/lookups-cached-single/src/main/java/org/apache/druid/server/lookup/PollingLookup.java
index 84c20d5..0cfa076 100644
---
a/extensions-core/lookups-cached-single/src/main/java/org/apache/druid/server/lookup/PollingLookup.java
+++
b/extensions-core/lookups-cached-single/src/main/java/org/apache/druid/server/lookup/PollingLookup.java
@@ -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();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]