Skip to content

Commit

Permalink
refactor: another implement of _.omit
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 27, 2019
1 parent fc140bd commit d0d45dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/theme/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ View.prototype.renderSync = function(options = {}) {
};

View.prototype._buildLocals = function(locals) {
// eslint-disable-next-line no-unused-vars
const { layout, _content, ...data } = this.data;
const data = Object.assign({}, this.data);
delete data.layout;
delete data._concat;
return assignIn({}, locals, data, {
filename: this.source
});
Expand Down

0 comments on commit d0d45dc

Please sign in to comment.