mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Fix makeValidator returning required: boolean
This commit is contained in:
4
lib/entry-points.js
generated
4
lib/entry-points.js
generated
@@ -144598,11 +144598,11 @@ function isStringOrUndefined(value) {
|
||||
function defaultCheck(validate) {
|
||||
return (arg) => ({ unknownKeys: [], invalidKeys: [], valid: validate(arg) });
|
||||
}
|
||||
function makeValidator(validate, required = true) {
|
||||
function makeValidator(validate) {
|
||||
return {
|
||||
validate,
|
||||
check: defaultCheck(validate),
|
||||
required
|
||||
required: true
|
||||
};
|
||||
}
|
||||
var string = makeValidator(isString);
|
||||
|
||||
Reference in New Issue
Block a user