*Use ?. on constructor

This commit is contained in:
Derrick Hammer 2023-04-07 21:50:05 -04:00
parent 875af27733
commit dc806ba98e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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") {