[TS] Update auto-generated bindings
[ldk-java] / ts / structs / Persister.mts
index 9614d0f99f60d0e0aecc2313c74282bdfb8eaa61..dac356b41bed669dc958ad67343107f40c7c25e0 100644 (file)
@@ -527,7 +527,7 @@ export class Persister extends CommonBase {
         * Persist the given [`WriteableScore`] to disk, returning an error if persistence failed.
         */
        public persist_scorer(scorer: WriteableScore): Result_NoneErrorZ {
-               const ret: bigint = bindings.Persister_persist_scorer(this.ptr, scorer == null ? 0n : CommonBase.get_ptr_of(scorer));
+               const ret: bigint = bindings.Persister_persist_scorer(this.ptr, CommonBase.get_ptr_of(scorer));
                const ret_hu_conv: Result_NoneErrorZ = Result_NoneErrorZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(this, scorer);
                return ret_hu_conv;