Skip to content

Commit

Permalink
squash: same changes for disable
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Mar 8, 2018
1 parent 07cd9c6 commit 77a9313
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ class AsyncHook {
return this;

const prev_kTotals = hook_fields[kTotals];
hook_fields[kTotals] = 0;

hook_fields[kTotals] += hook_fields[kInit] -= +!!this[init_symbol];
hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];
hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];
hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];
hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];
Expand Down

0 comments on commit 77a9313

Please sign in to comment.