You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/08/22 06:30:06 UTC

[shardingsphere] branch master updated: remove null != schema && null != runtimeContext (#6989)

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) <pa...@apache.org>
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();
     }
 }