[ 
https://issues.apache.org/jira/browse/CALCITE-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750513#comment-17750513
 ] 

xiong duan commented on CALCITE-5875:
-------------------------------------

Fixed in 
[5b66bd3cfaf6|https://github.com/apache/calcite/commit/5b66bd3cfaf69cf21b2912f721e4a0b65920cd09].
 Thanks for the contribution [~taoran].

> Remove unnecessary NULL checks in Redis adapter
> -----------------------------------------------
>
>                 Key: CALCITE-5875
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5875
>             Project: Calcite
>          Issue Type: Improvement
>    Affects Versions: 1.34.0
>            Reporter: Ran Tao
>            Assignee: Ran Tao
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.36.0
>
>
> It's minor fix to remove some unnecessary null checks for redis-adapter.
> e.g.
> {code:java}
> if (REDIS_CONTAINER != null && REDIS_CONTAINER.isRunning()) {
>   REDIS_CONTAINER.stop();
> } {code}
> however REDIS_CONTAINER is static variable must not be null unless cause 
> exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to