Substitute null check with Configuration#isSet (#2851)

This commit is contained in:
Conclure authored and GitHub committed 2021-01-26 11:52:12 +00:00
1 parent 284e260bc2
commit 8043b84dc4
1 file changed
+1 -1
@@ -72,7 +72,7 @@ public class BukkitConfigAdapter implements ConfigurationAdapter {
@Override
public List<String> getStringList(String path, List<String> def) {
List<String> list = this.configuration.getStringList(path);
return list == null ? def : list;
return this.configuration.isSet(path) ? list : def;
}
@Override