Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed May 26, 2020
1 parent 3194087 commit 8152b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class SourcedEntity extends EventEmitter {
merge (snapshot) {
log(util.format('merging snapshot %j', snapshot))
for (var property in snapshot) {
if (snapshot.hasOwnProperty(property)) { var val = cloneDeep(snapshot[property]) } // eslint-disable-line no-prototype-builtins
if (Object.prototype.hasOwnProperty.call(snapshot, property)) { var val = cloneDeep(snapshot[property]) }
this.mergeProperty(property, val)
}
return this
Expand Down

0 comments on commit 8152b79

Please sign in to comment.