Skip to content

Commit

Permalink
For code format
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 23, 2023
1 parent 1b20e31 commit 16c4ca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class ShardingIndexReviser implements IndexReviser<ShardingRule> {
@Override
public Optional<IndexMetaData> 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());
Expand Down

0 comments on commit 16c4ca1

Please sign in to comment.