diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/builder/RuleConfigurationEventBuilder.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/builder/RuleConfigurationEventBuilder.java index c213d72fdd852..758c5b8460f7b 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/builder/RuleConfigurationEventBuilder.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/builder/RuleConfigurationEventBuilder.java @@ -55,7 +55,7 @@ public Optional build(final String databaseName, final DataChan } private Optional build(final RuleNodePath ruleNodePath, final String databaseName, final DataChangedEvent event) { - if (!ruleNodePath.getRoot().isValidatedPath(event.getKey()) || (Type.DELETED != event.getType() && Strings.isNullOrEmpty(event.getValue()))) { + if (!ruleNodePath.getRoot().isValidatedPath(event.getKey()) || Type.DELETED != event.getType() && Strings.isNullOrEmpty(event.getValue())) { return Optional.empty(); } for (Entry entry : ruleNodePath.getNamedItems().entrySet()) {