Skip to content

Commit

Permalink
small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bohhyang committed Oct 4, 2023
1 parent 7ef0bc7 commit 5b99eea
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,7 @@ private String getSymlink(String actualNodeName) {

private static String getNodeName(String path)
{
int idx = path.lastIndexOf(PATH_SEPARATOR);
if (idx == -1)
{
return path;
}
else
{
return path.substring(idx + 1);
}
return path.substring(path.lastIndexOf(PATH_SEPARATOR) + 1);
}

private void notifyAvailabilityChanges(boolean isAvailable)
Expand Down

0 comments on commit 5b99eea

Please sign in to comment.