We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0fb39 commit 8d6aa28Copy full SHA for 8d6aa28
go/ql/lib/semmle/go/frameworks/AwsLambda.qll
@@ -27,9 +27,9 @@ private class HandlerFunction extends FuncDef {
27
or
28
this = any(Method m | m.implements(awsLambdaPkg(), "Handler", "Invoke")).getFuncDecl()
29
30
- exists(ConversionExpr ce |
31
- ce.getTypeExpr().getType() instanceof HandlerImpl and
32
- this = ce.getOperand().(FunctionName).getTarget().getFuncDecl()
+ exists(DataFlow::TypeCastNode typeCast |
+ typeCast.getResultType() instanceof HandlerImpl and
+ this.(FuncDecl).getFunction().getARead() = typeCast.getOperand()
33
)
34
}
35
0 commit comments