From b98b994fe76593599c88f00e2723f93232c67158 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 27 May 2019 11:06:11 +0200 Subject: [PATCH] apply prettier on plugins (#7605) --- .../discourse/components/composer-presence-display.js.es6 | 3 +-- .../javascripts/initializers/add-poll-ui-builder.js.es6 | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 index bad4c859d8a..18cfd47d92e 100644 --- a/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 +++ b/plugins/discourse-presence/assets/javascripts/discourse/components/composer-presence-display.js.es6 @@ -92,8 +92,7 @@ export default Ember.Component.extend({ this.messageBus.subscribe( r.messagebus_channel, message => { - if (!this.isDestroyed) - this.set("presenceUsers", message.users); + if (!this.isDestroyed) this.set("presenceUsers", message.users); this._clearTimer = Ember.run.debounce( this, "clear", diff --git a/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 b/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 index 5af0c73cd46..406045f1ffd 100644 --- a/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 +++ b/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 @@ -21,10 +21,7 @@ function initializePollUIBuilder(api) { actions: { showPollBuilder() { - showModal("poll-ui-builder").set( - "toolbarEvent", - this.toolbarEvent - ); + showModal("poll-ui-builder").set("toolbarEvent", this.toolbarEvent); } } });