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 ( return (
item && item &&
item.get("parentCategory") === parentCategory && item.get("parentCategory") === parentCategory &&
( ((Discourse.SiteSettings.slug_generation_method !== "encoded" &&
Discourse.SiteSettings.slug_generation_method !== "encoded" && Category.slugFor(item) === parentSlug + "/" + slug) ||
Category.slugFor(item) === parentSlug + "/" + slug (Discourse.SiteSettings.slug_generation_method === "encoded" &&
|| Category.slugFor(item) ===
Discourse.SiteSettings.slug_generation_method === "encoded" && encodeURI(parentSlug) + "/" + encodeURI(slug)))
Category.slugFor(item) === encodeURI(parentSlug) + "/" + encodeURI(slug)
)
); );
}); });
} }