Skip to content

Commit

Permalink
Revert redundant change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii-Klimov committed Feb 21, 2025
1 parent 2eaed01 commit 15732c3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,14 @@ public static Map<ResourceDescriptor, Set<ResourceAccessType>> getAppResourceAcc
}

String parentPath = resource.getParentPath();
String filePath = (parentPath == null)
String filePath;
if (resource.isFolder()) {
filePath = parentPath;
} else {
filePath = parentPath == null
? resource.getName()
: parentPath + ResourceDescriptor.PATH_SEPARATOR + resource.getName();
}

if (filePath != null && filePath.startsWith(appPath)) {
result.put(resource, ResourceAccessType.ALL);
Expand Down

0 comments on commit 15732c3

Please sign in to comment.