8000 Account for non-empty `cpus` file with whitespace chars · github/codeql-action@dc7e2b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc7e2b5

Browse files
committed
Account for non-empty cpus file with whitespace chars
If a CPU file exists but is empty, previously we reported this file with a CPU count of 1. This change trims whitespace from the file, and makes sure that the length of any token in the file is greater than 0 before incrementing the CPU count variable. This will (correctly) report the file with a CPU count of 0, and the result will be filtered out as expected.
1 parent 65b0987 commit dc7e2b5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/util.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0