Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-cherednik committed Dec 30, 2024
1 parent 22b1fed commit c6fcc88
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ protected String getFileName(ZipEntry zipEntry, Set<String> prefixes) {
return FilenameUtils.getName(fileName);

for (String prefix : prefixes) {
if (fileName.equals(prefix + '/'))
String dirPrefix = prefix + SLASH;

if (fileName.equals(dirPrefix))
return null;
if (fileName.startsWith(prefix + '/'))
return StringUtils.substring(fileName, prefix.length() + 1);
if (fileName.startsWith(dirPrefix))
return StringUtils.substring(fileName, dirPrefix.length());
}

return null;
Expand Down

0 comments on commit c6fcc88

Please sign in to comment.