git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
text: fix double Chapter detection
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
Instance.java
diff --git
a/src/be/nikiroo/fanfix/Instance.java
b/src/be/nikiroo/fanfix/Instance.java
index 74221b00916e499f3a2cbfdf41d6e1b65aa2fbf4..a6462323492bf3356413403778bcaeb29b504b4d 100644
(file)
--- 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) {
* @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);
}
return getFile(path);
}
@@
-521,11
+517,7
@@
public class Instance {
* @return the path
*/
private static File getFile(UiConfig id, File def) {
* @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);
}
return getFile(path);
}