From cd469f33db174e8b0d160034eb2f69117f9cb4ad Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Sun, 7 Jul 2024 21:40:24 +0200 Subject: [PATCH] remove an unneeded null check --- script/gallery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gallery.ts b/script/gallery.ts index 44f7b58..1671a9d 100644 --- a/script/gallery.ts +++ b/script/gallery.ts @@ -90,7 +90,7 @@ function toggleSingles(e: Event) { } } - if (e) e.preventDefault(); + e.preventDefault(); }