Skip to content
Permalink
Browse files

Fixed small unnecessary lines of code

  • Loading branch information...
luccioman committed Jul 8, 2018
1 parent 26aa5f7 commit 9630f813066f9f87d4af7e5e7e7423b2b226a9b3
Showing with 2 additions and 3 deletions.
  1. +2 −3 source/net/yacy/gui/framework/Switchboard.java
@@ -124,7 +124,7 @@ public void run() {
// 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 static boolean getBool(String key, boolean dflt) {
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));
}

/**

0 comments on commit 9630f81

Please sign in to comment.
You can’t perform that action at this time.