Skip to content

Commit

Permalink
[INTERNAL] Fix ESLint indentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Aug 13, 2018
1 parent 277416e commit 1b775a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/lbt/graph/topologicalSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,18 @@ function topologicalSort(pool, moduleNames) {
moduleNames = moduleNames.slice(); // clone

do {
// invariant: the first 'l' items in moduleNames are still to be processed
// invariant: the first 'l' items in moduleNames are still to be processed

// first loop over all remaining modules and emit those that don't have any more dependencies
// first loop over all remaining modules and emit those that don't have any more dependencies
for (i = 0, j = 0; i < l; i++ ) {
const moduleName = moduleNames[i];
const node = graph[moduleName];

// modules that don't have any unsatisfied dependencies can be emitted
if ( node == null || node.outgoing.length === 0 ) {
// console.log("emitting %s", moduleName, node);
// console.log("emitting %s", moduleName, node);

// add module to sequence
// add module to sequence
sequence.push(moduleName);

// remove outgoing dependency to current module from all modules that depend on it
Expand Down

0 comments on commit 1b775a9

Please sign in to comment.