You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2023/06/04 08:17:08 UTC
[shardingsphere] branch master updated: Remove redundant code (#26040)
This is an automated email from the ASF dual-hosted git repository.
jianglongtao 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 cc2a2ff0c5f Remove redundant code (#26040)
cc2a2ff0c5f is described below
commit cc2a2ff0c5ff069d7786c39db7739c03c828d6e1
Author: magestack <ma...@163.com>
AuthorDate: Sun Jun 4 16:16:55 2023 +0800
Remove redundant code (#26040)
---
.../shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java b/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
index c25f69f4742..cf6b69ec0d8 100644
--- a/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
+++ b/mode/type/standalone/repository/provider/jdbc/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
@@ -135,9 +135,6 @@ public final class JDBCRepository implements StandalonePersistRepository {
String tempKey = tempPrefix + SEPARATOR + paths[i];
String tempKeyVal = getDirectly(tempKey);
if (Strings.isNullOrEmpty(tempKeyVal)) {
- if (i != 0) {
- parent = tempPrefix;
- }
insert(tempKey, "", parent);
}
tempPrefix = tempKey;