mirror of
https://github.com/github/codeql-action.git
synced 2026-04-28 18:08:53 +00:00
Linting: Prefer optional chaining
This commit is contained in:
+1
-1
@@ -371,7 +371,7 @@ function getInputOrThrow(
|
||||
input = input.replace(`\${{matrix.${key}}}`, value);
|
||||
}
|
||||
}
|
||||
if (input !== undefined && input.includes("${{")) {
|
||||
if (input?.includes("${{")) {
|
||||
throw new Error(
|
||||
`Could not get ${inputName} input to ${actionName} since it contained an unrecognized dynamic value.`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user