mirror of
https://github.com/Fluffy-Bean/website.git
synced 2024-12-26 17:36:12 +00:00
Avoid use of ==
and !=
(JS-0050)
This commit is contained in:
parent
0085442251
commit
18729faff4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue