This is an automated email from the ASF dual-hosted git repository.
xiong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new 5b66bd3cfa [CALCITE-5875] Remove unnecessary NULL checks in Redis
adapter
5b66bd3cfa is described below
commit 5b66bd3cfaf69cf21b2912f721e4a0b65920cd09
Author: Ran Tao <[email protected]>
AuthorDate: Thu Jul 27 14:53:30 2023 +0800
[CALCITE-5875] Remove unnecessary NULL checks in Redis adapter
---
redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java
b/redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java
index bf54157249..7577fe5177 100644
--- a/redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java
+++ b/redis/src/test/java/org/apache/calcite/adapter/redis/RedisCaseBase.java
@@ -113,7 +113,7 @@ public abstract class RedisCaseBase {
@AfterAll
public static void stopRedisContainer() {
- if (REDIS_CONTAINER != null && REDIS_CONTAINER.isRunning()) {
+ if (REDIS_CONTAINER.isRunning()) {
REDIS_CONTAINER.stop();
}
}