This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 308e77b  remove null != schema && null != runtimeContext (#6989)
308e77b is described below

commit 308e77b070d9a27d64c840358fee5ee19c554887
Author: Juan Pan(Trista) <[email protected]>
AuthorDate: Sat Aug 22 14:29:50 2020 +0800

    remove null != schema && null != runtimeContext (#6989)
---
 .../java/org/apache/shardingsphere/kernel/context/SchemaContext.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/shardingsphere-kernel/shardingsphere-kernel-context/src/main/java/org/apache/shardingsphere/kernel/context/SchemaContext.java
 
b/shardingsphere-kernel/shardingsphere-kernel-context/src/main/java/org/apache/shardingsphere/kernel/context/SchemaContext.java
index 9494d98..61599be 100644
--- 
a/shardingsphere-kernel/shardingsphere-kernel-context/src/main/java/org/apache/shardingsphere/kernel/context/SchemaContext.java
+++ 
b/shardingsphere-kernel/shardingsphere-kernel-context/src/main/java/org/apache/shardingsphere/kernel/context/SchemaContext.java
@@ -41,6 +41,6 @@ public final class SchemaContext {
      * @return is complete schema context or not
      */
     public boolean isComplete() {
-        return null != schema && null != runtimeContext && 
!schema.getRules().isEmpty() && !schema.getDataSources().isEmpty();
+        return !schema.getRules().isEmpty() && 
!schema.getDataSources().isEmpty();
     }
 }

Reply via email to