You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "NobiGo (via GitHub)" <gi...@apache.org> on 2023/08/01 10:23:57 UTC
[GitHub] [calcite] NobiGo commented on a diff in pull request #3339: [CALCITE-5875] Remove some unnecessary null checks for redis adapter
NobiGo commented on code in PR #3339:
URL: https://github.com/apache/calcite/pull/3339#discussion_r1280340504
##########
redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java:
##########
@@ -113,7 +113,7 @@ public static int getAvailablePort() {
@AfterAll
public static void stopRedisContainer() {
- if (REDIS_CONTAINER != null && REDIS_CONTAINER.isRunning()) {
Review Comment:
LGTM
##########
redis/src/test/java/org/apache/calcite/adapter/redis/RedisDataCaseBase.java:
##########
@@ -99,8 +99,6 @@ public void makeData() {
@AfterEach
public void shutDown() {
- if (null != pool) {
Review Comment:
I don't think so. When we init the pool throw exception, if, remove the condition, the code will throw NPE.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org