From 42c2068ada7bbb3aecf3243eaedf08f61e3fdee0 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Thu, 17 Oct 2019 17:39:44 -0300 Subject: [PATCH] DEV: fix prettier offense --- .../javascripts/discourse/models/category.js.es6 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/models/category.js.es6 b/app/assets/javascripts/discourse/models/category.js.es6 index 665961e03d7..8aa1f1e2c71 100644 --- a/app/assets/javascripts/discourse/models/category.js.es6 +++ b/app/assets/javascripts/discourse/models/category.js.es6 @@ -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))) ); }); }