Skip to content

Commit

Permalink
refactor: format properly || condition
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Aug 19, 2024
1 parent 039ec77 commit da6bafa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
22 changes: 4 additions & 18 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"version": "0.4.19",
"exports": "./src/mod.ts",
"compilerOptions": {
"lib": [
"deno.worker"
],
"lib": ["deno.worker"],
"strict": true
},
"tasks": {
Expand All @@ -26,9 +24,7 @@
"documentation": "deno doc ./src/mod.ts"
},
"test": {
"include": [
"./tests/**/*.test.mjs"
]
"include": ["./tests/**/*.test.mjs"]
},
"fmt": {
"semiColons": false,
Expand All @@ -42,18 +38,8 @@
"expect": "npm:expect@^29.7.0"
},
"publish": {
"include": [
"LICENSE",
"README.md",
"deno.json",
"src/**/*.ts"
]
"include": ["LICENSE", "README.md", "deno.json", "src/**/*.ts"]
},
"lock": false,
"exclude": [
"./coverage",
"./dist/browser",
"./dist/esm",
"./npm"
]
"exclude": ["./coverage", "./dist/browser", "./dist/esm", "./npm"]
}
4 changes: 2 additions & 2 deletions src/pools/abstract-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ export abstract class AbstractPool<
...(this.opts.enableTasksQueue === true && {
stealingWorkerNodes: this.workerNodes.reduce(
(accumulator, workerNode) =>
(workerNode.info.continuousStealing ||
workerNode.info.backPressureStealing)
workerNode.info.continuousStealing ||
workerNode.info.backPressureStealing
? accumulator + 1
: accumulator,
0,
Expand Down

0 comments on commit da6bafa

Please sign in to comment.