Skip to content

Commit

Permalink
Manual decaf chunked-executor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Jan 7, 2025
1 parent 9f99f6d commit 89a9964
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/chunked-executor.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS202: Simplify dynamic range loops
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
let ChunkedExecutor;
const MAX_CONCURRENT_CHUNK = 20;

// Public: {ChunkedExecutor} will execute on an {Array} paths in a pathQueue only
Expand All @@ -27,7 +19,7 @@ const MAX_CONCURRENT_CHUNK = 20;
// executor.push '/path/to/lastone.coffee'
// ```
module.exports =
(ChunkedExecutor = class ChunkedExecutor {
class ChunkedExecutor {

// Construct a {ChunkedExecutor}
//
Expand Down Expand Up @@ -93,4 +85,4 @@ module.exports =
this.executeNextPathIfPossible();
if (this.pathCount === 0) { return this.doneCallback(); }
}
});
}

0 comments on commit 89a9964

Please sign in to comment.