Skip to content

A platform for community discussion. Free, open, simple.

prettier (#7653)

Joffrey JAFFEUX7a21f78f8c11
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");
}