From 16c4ca1e3c935bdfabbaa1199b7d38b1e66eb41e Mon Sep 17 00:00:00 2001 From: zhangliang Date: Sun, 24 Sep 2023 00:22:23 +0800 Subject: [PATCH] For code format --- .../sharding/metadata/reviser/index/ShardingIndexReviser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/metadata/reviser/index/ShardingIndexReviser.java b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/metadata/reviser/index/ShardingIndexReviser.java index 417c002e6f94e..676050cc7b1cb 100644 --- a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/metadata/reviser/index/ShardingIndexReviser.java +++ b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/metadata/reviser/index/ShardingIndexReviser.java @@ -36,7 +36,7 @@ public final class ShardingIndexReviser implements IndexReviser { @Override public Optional revise(final String tableName, final IndexMetaData originalMetaData, final ShardingRule rule) { if (tableRule.getActualDataNodes().isEmpty()) { - return Optional.empty(); + return Optional.empty(); } IndexMetaData result = new IndexMetaData(getLogicIndex(originalMetaData.getName(), tableRule.getActualDataNodes().iterator().next().getTableName())); result.getColumns().addAll(originalMetaData.getColumns());