Skip to content

Commit

Permalink
dont need to cast list
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Dec 2, 2023
1 parent 12f6b36 commit 4cf32a8
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public interface LuaConversions {
);

static LuaValue toLua(Object sourceFeature) {
if (sourceFeature instanceof List<?> list) {
return LuaValue.listOf(list.stream().map(LuaConversions::toLua).toArray(LuaValue[]::new));
}
return CoerceJavaToLua.coerce(sourceFeature);
}

Expand Down

0 comments on commit 4cf32a8

Please sign in to comment.