mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Fix checking keys rather than values
This commit is contained in:
@@ -68,8 +68,8 @@ function main() {
|
||||
strict: true,
|
||||
});
|
||||
|
||||
for (const key of Object.keys(values)) {
|
||||
if (key === undefined || key.trim() === "") {
|
||||
for (const [key, val] of Object.entries(values)) {
|
||||
if (val === undefined || val.trim() === "") {
|
||||
throw new Error(`Argument '--${key}' is required.`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user