Skip to content

Commit b726911

Browse files
authored
Merge pull request #1659 from paopaofish/master
Remove redundant null check in VFSHolder
2 parents e28b0f3 + e6be4aa commit b726911

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static VFS createVFS() {
5858
Class<? extends VFS> impl = impls.get(i);
5959
try {
6060
vfs = impl.getDeclaredConstructor().newInstance();
61-
if (vfs == null || !vfs.isValid()) {
61+
if (!vfs.isValid()) {
6262
if (log.isDebugEnabled()) {
6363
log.debug("VFS implementation " + impl.getName() +
6464
" is not valid in this environment.");

0 commit comments

Comments
 (0)