Skip to content

Commit

Permalink
bypass helper chain if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
brycebaril committed Jun 21, 2013
1 parent a8f55fe commit 6937567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ function Stats(initial) {
this.helper_stack = []
}
Stats.prototype._handle = function (out) {
// Bypass helper chain if there is none. (Mostly to avoid tacking on stats_runtime)
if (this.helper_stack.length == 0) return out(this.status)
var self = this
var index = 0
var stack = this.helper_stack
Expand Down

0 comments on commit 6937567

Please sign in to comment.