Skip to content

Commit

Permalink
fix: remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavolivrare committed Apr 25, 2018
1 parent 518e276 commit 727c4dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ LivePatch.prototype._patch = function(type, value) {
var top = this.stack[this.stack.length - 1];
var parent = this.stack[this.stack.length - 2];

if (!top) return

if (top.type == 'array') {
parent = top;
this._pushKey(parent.counter.toString());
Expand Down

0 comments on commit 727c4dd

Please sign in to comment.