mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 09:59:43 +00:00
Break out of loop to allow result object to be updated after failing fast
This commit is contained in:
6
lib/entry-points.js
generated
6
lib/entry-points.js
generated
@@ -144556,14 +144556,14 @@ function checkSchema(schema, obj, options = {}, path29 = "") {
|
||||
if (validator.required && !hasKey) {
|
||||
result.valid = false;
|
||||
if (options.failFast) {
|
||||
return result;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (validator.required && (obj[key] === void 0 || obj[key] === null)) {
|
||||
result.valid = false;
|
||||
if (options.failFast) {
|
||||
return result;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@@ -144577,7 +144577,7 @@ function checkSchema(schema, obj, options = {}, path29 = "") {
|
||||
if (!checkResult.valid) {
|
||||
result.valid = false;
|
||||
if (options.failFast) {
|
||||
return result;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user