From 18729faff47c207453b236448e41b264bc814f56 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Tue, 28 May 2024 19:03:55 +0100 Subject: [PATCH] Avoid use of `==` and `!=` (JS-0050) --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 9a02f8f..d30b5ed 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -55,7 +55,7 @@ export async function getTagsBySlug( const tags: CollectionEntry<"tags">[] = []; postTags.forEach((postTag) => { allTags.forEach((allTag) => { - if (allTag.slug == postTag) tags.push(allTag); + if (allTag.slug === postTag) tags.push(allTag); }); }); return tags;