Skip to content

Commit

Permalink
fixup: remove unneeded comments
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksilva97 committed Nov 26, 2024
1 parent 643efe1 commit e152212
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/internal/abort_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ class AbortSignal extends EventTarget {
resultSignal[kSourceSignals].add(signalWeakRef);
signal[kDependantSignals].add(resultSignalWeakRef);
dependantSignalsCleanupRegistry.register(resultSignal, signalWeakRef);
// when the source signal - coming from the controller - is gced, we need to remove it from the dependant
// signals of the composite signal
finalizer.register(signal, { sourceSignalRef: signalWeakRef, composedSignalRef: resultSignalWeakRef});
finalizer.register(signal, { sourceSignalRef: signalWeakRef, composedSignalRef: resultSignalWeakRef });
} else if (!signal[kSourceSignals]) {
continue;
} else {
Expand Down

0 comments on commit e152212

Please sign in to comment.