Review feeback for OpenStream

This commit is contained in:
Peter Stöckli
2020-03-27 17:06:58 +01:00
parent 5e62a6bebe
commit 3de00443ff

View File

@@ -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)
}
}