Skip to content

Commit

Permalink
Revert "[Java] Tidy up file deletion, i.e. avoid repeated attempts at…
Browse files Browse the repository at this point in the history
… deleting a file that does not exist."

This reverts commit d52d2e8.
  • Loading branch information
vyazelenko committed Feb 5, 2025
1 parent 53c3c00 commit cdd5c89
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ public boolean free()

if (null != logFile)
{
if (logFile.delete() || !logFile.exists())
if (!logFile.delete() && logFile.exists())
{
logFile = null;
return false;
}
return false;

logFile = null;
}

return true;
Expand Down

0 comments on commit cdd5c89

Please sign in to comment.