From 7a21f78f8c115e753c61c2532359013db064b586 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 30 May 2019 17:28:07 +0200 Subject: [PATCH] prettier (#7653) --- app/assets/javascripts/discourse/models/rest.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/models/rest.js.es6 b/app/assets/javascripts/discourse/models/rest.js.es6 index 14d214decda..8b731f584fd 100644 --- a/app/assets/javascripts/discourse/models/rest.js.es6 +++ b/app/assets/javascripts/discourse/models/rest.js.es6 @@ -16,7 +16,7 @@ const RestModel = Ember.Object.extend({ this.set("isSaving", true); return this.store .update(this.__type, this.id, props) - .then((res) => { + .then(res => { const payload = this.__munge(res.payload || res.responseJson); if (payload.success === "OK") { @@ -48,7 +48,7 @@ const RestModel = Ember.Object.extend({ this.set("isSaving", true); return adapter .createRecord(this.store, this.__type, props) - .then((res) => { + .then(res => { if (!res) { throw new Error("Received no data back from createRecord"); }