Skip to content

Commit c3e4c1e

Browse files
committed
[refactor] Address code-review from @reinhapa
1 parent e549818 commit c3e4c1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exist-core/src/main/java/org/exist/repo/ClasspathHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ private static void scanPackageDir(Package pkg, Classpath classpath, Path module
177177
}
178178
p = p.normalize().toAbsolutePath();
179179

180-
if (!Files.exists(p)) {
181-
LOG.warn("Unable to add '" + p + "' to the classpath for EXPath package: " + pkg.getName() + ", as the file does not exist!");
182-
} else {
180+
if (Files.exists(p)) {
183181
classpath.addComponent(p.toString());
182+
} else {
183+
LOG.warn("Unable to add '" + p + "' to the classpath for EXPath package: " + pkg.getName() + ", as the file does not exist!");
184184
}
185185
}
186186
}

0 commit comments

Comments
 (0)