Skip to content

Commit 2914db8

Browse files
committed
[ci] Combine if statement and fix formatting
1 parent cb8b4e8 commit 2914db8

File tree

1 file changed

+3
-5
lines changed
  • src/main/java/org/apache/ibatis/io

1 file changed

+3
-5
lines changed

src/main/java/org/apache/ibatis/io/VFS.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ static VFS createVFS() {
5858
Class<? extends VFS> impl = impls.get(i);
5959
try {
6060
vfs = impl.getDeclaredConstructor().newInstance();
61-
if (!vfs.isValid()) {
62-
if (log.isDebugEnabled()) {
63-
log.debug("VFS implementation " + impl.getName() +
64-
" is not valid in this environment.");
65-
}
61+
if (!vfs.isValid() && log.isDebugEnabled()) {
62+
log.debug("VFS implementation " + impl.getName()
63+
+ " is not valid in this environment.");
6664
}
6765
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
6866
log.error("Failed to instantiate " + impl, e);

0 commit comments

Comments
 (0)