Skip to content

Commit 2bcae28

Browse files
author
玄都
authored
fix: delete useless plafrom condition (#35)
* fix: optimize the algorithm for cpu count calculation in the linux plaform * fix: delete useless plafrom condition * style: delete useless comments
1 parent 9783b07 commit 2bcae28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/physicalCpuCount.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ try {
3030
} else if (platform === 'darwin') {
3131
const output = exec('sysctl -n hw.physicalcpu_max')
3232
amount = parseInt(output.trim(), 10)
33-
// @ts-ignore
34-
} else if (platform === 'windows' || platform === 'win32') {
33+
} else if (platform === 'win32') {
3534
// windows takes too long, so let's drop the support
3635
throw new Error()
3736
} else {

0 commit comments

Comments
 (0)