mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Review feeback for OpenStream
This commit is contained in:
@@ -16,11 +16,9 @@ class URLConstructor extends ClassInstanceExpr {
|
||||
|
||||
Expr stringArg() {
|
||||
// Query only in URL's that were constructed by calling the single parameter string constructor.
|
||||
if
|
||||
this.getConstructor().getNumberOfParameters() = 1 and
|
||||
this.getConstructor().getParameter(0).getType().getName() = "String"
|
||||
then result = this.getArgument(0)
|
||||
else none()
|
||||
this.getConstructor().getNumberOfParameters() = 1 and
|
||||
this.getConstructor().getParameter(0).getType() instanceof TypeString
|
||||
and result = this.getArgument(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user