Updates some KnarLib code
Some checks failed
EpicKnarvik97/Blacksmith/pipeline/head There was a failure building this commit
Some checks failed
EpicKnarvik97/Blacksmith/pipeline/head There was a failure building this commit
This commit is contained in:
@ -25,8 +25,8 @@ public final class ConfigHelper {
|
||||
if (value == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
if (value instanceof String) {
|
||||
return List.of(((String) value).split(","));
|
||||
if (value instanceof String string) {
|
||||
return List.of((string).split(","));
|
||||
} else if (value instanceof List<?> list) {
|
||||
List<String> strings = new ArrayList<>();
|
||||
for (Object object : list) {
|
||||
|
Reference in New Issue
Block a user