Avoid use of == and != (JS-0050)

This commit is contained in:
Michał 2024-05-28 19:03:55 +01:00
parent 0085442251
commit 18729faff4

View file

@ -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;