Skip to content

Commit

Permalink
[refactor] Address code-review from @reinhapa
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed May 10, 2023
1 parent ee4aebd commit e6b2134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exist-core/src/main/java/org/exist/repo/ClasspathHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ private static void scanPackageDir(Package pkg, Classpath classpath, Path module
}
p = p.normalize().toAbsolutePath();

if (!Files.exists(p)) {
LOG.warn("Unable to add '" + p + "' to the classpath for EXPath package: " + pkg.getName() + ", as the file does not exist!");
} else {
if (Files.exists(p)) {
classpath.addComponent(p.toString());
} else {
LOG.warn("Unable to add '" + p + "' to the classpath for EXPath package: " + pkg.getName() + ", as the file does not exist!");
}
}
}
Expand Down

0 comments on commit e6b2134

Please sign in to comment.