prettier (#7653)
This commit is contained in:
parent
0fbbff86ab
commit
7a21f78f8c
|
@ -16,7 +16,7 @@ const RestModel = Ember.Object.extend({
|
||||||
this.set("isSaving", true);
|
this.set("isSaving", true);
|
||||||
return this.store
|
return this.store
|
||||||
.update(this.__type, this.id, props)
|
.update(this.__type, this.id, props)
|
||||||
.then((res) => {
|
.then(res => {
|
||||||
const payload = this.__munge(res.payload || res.responseJson);
|
const payload = this.__munge(res.payload || res.responseJson);
|
||||||
|
|
||||||
if (payload.success === "OK") {
|
if (payload.success === "OK") {
|
||||||
|
@ -48,7 +48,7 @@ const RestModel = Ember.Object.extend({
|
||||||
this.set("isSaving", true);
|
this.set("isSaving", true);
|
||||||
return adapter
|
return adapter
|
||||||
.createRecord(this.store, this.__type, props)
|
.createRecord(this.store, this.__type, props)
|
||||||
.then((res) => {
|
.then(res => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
throw new Error("Received no data back from createRecord");
|
throw new Error("Received no data back from createRecord");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue