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:
Fatih Kadir Akın
2026-03-30 22:04:17 +03:00
committed by GitHub
+2 -2
View File
@@ -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);
}