mirror of
https://github.com/Fluffy-Bean/website.git
synced 2024-12-28 02:16:10 +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">[] = [];
|
const tags: CollectionEntry<"tags">[] = [];
|
||||||
postTags.forEach((postTag) => {
|
postTags.forEach((postTag) => {
|
||||||
allTags.forEach((allTag) => {
|
allTags.forEach((allTag) => {
|
||||||
if (allTag.slug == postTag) tags.push(allTag);
|
if (allTag.slug === postTag) tags.push(allTag);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return tags;
|
return tags;
|
||||||
|
|
Loading…
Reference in a new issue