From dc806ba98ee7757afddde71c466636e1e30e2985 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 7 Apr 2023 21:50:05 -0400 Subject: [PATCH] *Use ?. on constructor --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f45b172..993642a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -445,7 +445,7 @@ async function createProtomuxChannel(aq: ActiveQuery) { } return (...args: any) => { args = args.filter( - (item: any) => item.constructor.name.toLowerCase() !== "channel" + (item: any) => item?.constructor.name.toLowerCase() !== "channel" ); if (name === "destroy") {