Simplify UntrustedSources interface methods

This commit is contained in:
Slavomir
2021-01-23 10:58:02 +01:00
committed by Chris Smowton
parent 54abdf1a95
commit c01259ec2c

View File

@@ -68,11 +68,11 @@ private module CleverGo {
)
or
// Interfaces of package: clevergo.tech/clevergo@v0.5.2
exists(string methodName, Method mtd, FunctionOutput outp |
this = outp.getExitNode(mtd.getACall())
exists(string interfaceName, string methodName, Method mtd, FunctionOutput outp |
this = outp.getExitNode(mtd.getACall()) and
mtd.implements(packagePath(), interfaceName, methodName)
|
// Interface: Decoder
mtd.implements(packagePath(), "Decoder", methodName) and
interfaceName = "Decoder" and
(
// Method: func (Decoder).Decode(req *net/http.Request, v interface{}) error
methodName = "Decode" and