[TS] Don't null-check array conversions that aren't nullable
[ldk-java] / csharp_strings.py
index b5f816edea8b9771f9f48a32ae73efd0440d6f41..74830d0458ce2a56bc23a15fd3a5e76b130cf906 100644 (file)
@@ -494,7 +494,7 @@ namespace org { namespace ldk { namespace structs {
         else:
             return "FREE(" + arr_name + ")"
 
-    def map_hu_array_elems(self, arr_name, conv_name, arr_ty, elem_ty):
+    def map_hu_array_elems(self, arr_name, conv_name, arr_ty, elem_ty, is_nullable):
         if elem_ty.java_hu_ty == "UInt5":
             return arr_name + " != null ? InternalUtils.convUInt5Array(" + arr_name + ") : null"
         elif elem_ty.java_hu_ty == "WitnessVersion":