mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
removed redundant close
This commit is contained in:
@@ -187,7 +187,6 @@ public class H2DBLock {
|
||||
if (lockFile != null && lockFile.isFile()) {
|
||||
try (RandomAccessFile f = new RandomAccessFile(lockFile, "rw")) {
|
||||
String m = f.readLine();
|
||||
f.close();
|
||||
if (m != null && m.equals(magic) && !lockFile.delete()) {
|
||||
LOGGER.error("Lock file '{}' was unable to be deleted. Please manually delete this file.", lockFile.toString());
|
||||
lockFile.deleteOnExit();
|
||||
|
||||
Reference in New Issue
Block a user