mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-01 19:40:49 +00:00
test: strict TypeScript ESLint configuration (#744)
* test: enable strict TypeScript ESLint configuration Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> * test: convert ESLint configuration to TypeScript Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> --------- Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
4
dist/action.mjs
generated
vendored
4
dist/action.mjs
generated
vendored
@@ -82,7 +82,7 @@ async function exec(command, args) {
|
||||
resolve();
|
||||
}
|
||||
else {
|
||||
reject(new Error(`Command exited with status code ${code}`));
|
||||
reject(new Error(`Command exited with status code ${code.toString()}`));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -136,7 +136,7 @@ function parse(str) {
|
||||
const args = [];
|
||||
let match;
|
||||
while ((match = regex.exec(str)) !== null) {
|
||||
args.push(match[1] ?? match[2] ?? match[3] ?? match[4]);
|
||||
args.push(match[1] || match[2] || match[3] || match[4]);
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user