mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 19:11:29 +01:00
fixed coverity reported bug
This commit is contained in:
@@ -182,8 +182,8 @@ public class NvdCveUpdater implements CachedWebDataSource {
|
|||||||
LOGGER.trace("Ignorable exception", ex);
|
LOGGER.trace("Ignorable exception", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lockFile != null) {
|
if (lockFile != null && lockFile.isFile() && !lockFile.delete()) {
|
||||||
lockFile.delete();
|
LOGGER.error("Lock file '{}' was unable to be deleted. Please manually delete this file.", lockFile.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user