Skip to content

Commit

Permalink
give _push a meaningful return variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Dec 9, 2016
1 parent d25f939 commit 7d3fdf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/-private/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2275,7 +2275,7 @@ Store = Service.extend({
*/
_push(data) {
let token = heimdall.start('store._push');
let ret = this._backburner.join(() => {
let internalModelOrModels = this._backburner.join(() => {
let included = data.included;
let i, length;

Expand Down Expand Up @@ -2304,7 +2304,7 @@ Store = Service.extend({
return this._pushInternalModel(data.data);
});
heimdall.stop(token);
return ret;
return internalModelOrModels;
},

_hasModelFor(modelName) {
Expand Down

0 comments on commit 7d3fdf0

Please sign in to comment.