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