Merge pull request #1091 from yoloni-9527/fix/remove-redundant-non-null-assertions-in-ezoic
fix: remove redundant non-null assertions in ezoic.ts
This commit is contained in:
+2
-2
@@ -8,6 +8,6 @@
|
||||
export function runEzoic(fn: () => void) {
|
||||
if (typeof window === "undefined") return;
|
||||
const ez = (window.ezstandalone ??= {} as NonNullable<typeof window.ezstandalone>);
|
||||
ez!.cmd = ez!.cmd || [];
|
||||
ez!.cmd.push(fn);
|
||||
ez.cmd = ez.cmd || [];
|
||||
ez.cmd.push(fn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user