From 3344312fb5da1848abf695d1eecbf8fbf429c9f0 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Thu, 21 Nov 2019 11:29:50 +0000 Subject: [PATCH] FIX: Replace this.get("foo") with this.foo to fix linting checks --- .../javascripts/discourse/mixins/filter-mode.js.es6 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/mixins/filter-mode.js.es6 b/app/assets/javascripts/discourse/mixins/filter-mode.js.es6 index 1e16f075ee6..4287080762d 100644 --- a/app/assets/javascripts/discourse/mixins/filter-mode.js.es6 +++ b/app/assets/javascripts/discourse/mixins/filter-mode.js.es6 @@ -9,15 +9,15 @@ export default Mixin.create({ "category", "noSubcategories", function() { - const rawFilterMode = this.get("rawFilterMode"); + const rawFilterMode = this.rawFilterMode; if (rawFilterMode) { return rawFilterMode; } else { - const category = this.get("category"); - const filterType = this.get("filterType"); + const category = this.category; + const filterType = this.filterType; if (category) { - const noSubcategories = this.get("noSubcategories"); + const noSubcategories = this.noSubcategories; return `c/${Category.slugFor(category)}${ noSubcategories ? "/none" : "" @@ -31,7 +31,7 @@ export default Mixin.create({ filterMode: computed("filterModeInternal", { get() { - return this.get("filterModeInternal"); + return this.filterModeInternal; }, set(key, value) {