From: Niki Roo Date: Tue, 28 May 2019 19:54:47 +0000 (+0200) Subject: instance uses new nikiroo-utils X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=1a744c9c36ee4bdd83ce3c0e68366b7b6d7564ae;p=fanfix-jexer.git instance uses new nikiroo-utils --- diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index 74221b0..a646232 100644 --- a/src/be/nikiroo/fanfix/Instance.java +++ b/src/be/nikiroo/fanfix/Instance.java @@ -507,11 +507,7 @@ public class Instance { * @return the path */ private static File getFile(Config id, File def) { - String path = config.getString(id); - if (path != null && path.isEmpty()) { - path = def.getPath(); - } - + String path = config.getString(id, def.getPath()); return getFile(path); } @@ -521,11 +517,7 @@ public class Instance { * @return the path */ private static File getFile(UiConfig id, File def) { - String path = uiconfig.getString(id); - if (path != null && path.isEmpty()) { - path = def.getPath(); - } - + String path = uiconfig.getString(id, def.getPath()); return getFile(path); }