From 1a744c9c36ee4bdd83ce3c0e68366b7b6d7564ae Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 28 May 2019 21:54:47 +0200 Subject: [PATCH] instance uses new nikiroo-utils --- src/be/nikiroo/fanfix/Instance.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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); } -- 2.27.0