From 2471974d79595179f3d8307adaac6c26a1548af1 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 13 Dec 2023 18:57:43 -0800
Subject: style(Tools): simplify statements

---
 src/lib/Tools/CharacterBirthdays.svelte | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/lib/Tools/CharacterBirthdays.svelte')

diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte
index 033b7c0a..048a6078 100644
--- a/src/lib/Tools/CharacterBirthdays.svelte
+++ b/src/lib/Tools/CharacterBirthdays.svelte
@@ -52,22 +52,21 @@
 		for (const entry of aniSearch.map((entry) => ({
 			...entry,
 			normalized_name: normalizeName(entry.name)
-		}))) {
+		})))
 			nameMap.set(entry.normalized_name, {
 				name: entry.name,
 				image: entry.image
 			});
-		}
 
 		for (const entry of acdb) {
 			const normalized_name = normalizeName(entry.name);
-			if (!nameMap.has(normalized_name)) {
+
+			if (!nameMap.has(normalized_name))
 				nameMap.set(normalized_name, {
 					name: entry.name,
 					image: entry.character_image,
 					origin: entry.origin
 				});
-			}
 		}
 
 		return Array.from(nameMap.values());
-- 
cgit v1.2.3

