From 9630f813066f9f87d4af7e5e7e7423b2b226a9b3 Mon Sep 17 00:00:00 2001 From: luccioman Date: Sun, 8 Jul 2018 08:15:26 +0200 Subject: [PATCH] Fixed small unnecessary lines of code --- source/net/yacy/gui/framework/Switchboard.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/gui/framework/Switchboard.java b/source/net/yacy/gui/framework/Switchboard.java index 44599a03e..a5720454d 100644 --- a/source/net/yacy/gui/framework/Switchboard.java +++ b/source/net/yacy/gui/framework/Switchboard.java @@ -124,7 +124,7 @@ public class Switchboard { // waiting for the main thread to finish execution log.info("Waiting for GUI thread to finish."); this.mainThread.interrupt(); - if (this.mainThread != null && this.mainThread.isAlive()) { + if (this.mainThread.isAlive()) { this.mainThread.join(); } // wait until everything is written @@ -227,8 +227,7 @@ public class Switchboard { public static File getFile(String key) { String s = properties.getProperty(key); if (s == null) return null; - s.replace("/", File.separator); - return new File(s); + return new File(s.replace("/", File.separator)); } /**