Skip to content

Commit 76455d6

Browse files
yoffRasmusWL
andauthored
Update python/ql/lib/semmle/python/frameworks/ServerLess.qll
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 02c41f3 commit 76455d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/ql/lib/semmle/python/frameworks/ServerLess.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ private Function getAServerlessHandler() {
3737
(runtime = "" or runtime.matches("python%"))
3838
|
3939
mod.getFile() = file and
40-
mod.getAnExport() = handler and
41-
result.getEnclosingModule() = mod and
40+
result.getScope() = mod and
4241
result.getName() = handler
4342
)
4443
}

0 commit comments

Comments
 (0)