Skip to content

Commit

Permalink
#331 fix sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Jan 11, 2018
1 parent ab5921c commit fb51589
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void deletingChildrenIfNeeded(final CuratorFramework curatorFramew
List<String> children;
try {
children = curatorFramework.getChildren().forPath(path);
} catch (KeeperException.NoNodeException e) {
} catch (KeeperException.NoNodeException e) { //NOSONAR
return;
}
if (children != null && !children.isEmpty()) {
Expand All @@ -28,10 +28,9 @@ public static void deletingChildrenIfNeeded(final CuratorFramework curatorFramew
}
try {
curatorFramework.delete().guaranteed().forPath(path);
} catch (KeeperException.NotEmptyException e) {
} catch (KeeperException.NotEmptyException e) { //NOSONAR
deletingChildrenIfNeeded(curatorFramework, path);
} catch (KeeperException.NoNodeException e) {
// ignore, the node maybe be removed by someone
} catch (KeeperException.NoNodeException e) { //NOSONAR
}
}

Expand Down

0 comments on commit fb51589

Please sign in to comment.