Update shared/yaml/codeql/serverless/ServerLess.qll

Co-authored-by: Alex Ford <alexrford@users.noreply.github.com>
This commit is contained in:
yoff
2023-07-25 17:27:45 +02:00
committed by GitHub
parent 21937e6a27
commit 2067d393e1

View File

@@ -63,6 +63,7 @@ module ServerLess<Input I> {
* the empty string if it does not.
*/
pragma[inline]
bindingset[property]
private string lookupValueOrEmpty(YamlMapping mapping, string property) {
if exists(mapping.lookup(property))
then result = mapping.lookup(property).(YamlScalar).getValue()