mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-14 14:11:35 +01:00
Minor trace patch
This commit is contained in:
@@ -203,8 +203,8 @@ public class DownloadTask implements Callable<Future<ProcessTask>> {
|
|||||||
* Attempts to delete the files that were downloaded.
|
* Attempts to delete the files that were downloaded.
|
||||||
*/
|
*/
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
if (first != null && first.exists() && first.delete()) {
|
if (first != null && first.exists() && !first.delete()) {
|
||||||
LOGGER.debug("Failed to delete first temporary file {}", second.toString());
|
LOGGER.debug("Failed to delete first temporary file {}", first.toString());
|
||||||
first.deleteOnExit();
|
first.deleteOnExit();
|
||||||
}
|
}
|
||||||
if (second != null && second.exists() && !second.delete()) {
|
if (second != null && second.exists() && !second.delete()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user