And a little more...

This commit is contained in:
GJ
2013-05-22 22:30:09 -04:00
parent a82cc9609b
commit 5e00636761
6 changed files with 11 additions and 35 deletions

View File

@ -88,21 +88,14 @@ public class RepairConfig extends ConfigLoader {
}
protected List<Repairable> getLoadedRepairables() {
if (repairables == null) {
return new ArrayList<Repairable>();
}
return repairables;
return repairables == null ? new ArrayList<Repairable>() : repairables;
}
private boolean noErrorsInRepairable(List<String> issues) {
if (issues.isEmpty()) {
return true;
}
for (String issue : issues) {
plugin.getLogger().warning(issue);
}
return false;
return issues.isEmpty();
}
}