DEV: fix prettier offense

This commit is contained in:
Rafael dos Santos Silva 2019-10-17 17:39:44 -03:00
parent 1f6f118e52
commit 42c2068ada
1 changed files with 5 additions and 7 deletions

View File

@ -283,13 +283,11 @@ Category.reopenClass({
return (
item &&
item.get("parentCategory") === parentCategory &&
(
Discourse.SiteSettings.slug_generation_method !== "encoded" &&
Category.slugFor(item) === parentSlug + "/" + slug
||
Discourse.SiteSettings.slug_generation_method === "encoded" &&
Category.slugFor(item) === encodeURI(parentSlug) + "/" + encodeURI(slug)
)
((Discourse.SiteSettings.slug_generation_method !== "encoded" &&
Category.slugFor(item) === parentSlug + "/" + slug) ||
(Discourse.SiteSettings.slug_generation_method === "encoded" &&
Category.slugFor(item) ===
encodeURI(parentSlug) + "/" + encodeURI(slug)))
);
});
}