mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 16:39:48 +00:00
Substitute null check with Configuration#isSet (#2851)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user