Skip to content

Commit

Permalink
Removed else
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgp committed Nov 4, 2017
1 parent f97118f commit 2bdc2e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ module.exports = {
var node = this.node('staticlookup');
var offset = this.node('constref');
var name = this.text();

this.next();
offset = offset(name);

if(this.token === this.tok.T_OBJECT_OPERATOR || this.token === this.tok.T_DOUBLE_COLON) {
this.error();
} else {
result = node(result, offset);
}

result = node(result, offset);
}
break;
case this.tok.T_OBJECT_OPERATOR:
Expand Down

0 comments on commit 2bdc2e6

Please sign in to comment.