removed redundant close

This commit is contained in:
Jeremy Long
2017-09-27 05:40:35 -04:00
parent bb5b6b75b8
commit 516390827b

View File

@@ -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();