JS: eliminate redundant ConstantString casts

This commit is contained in:
Esben Sparre Andreasen
2019-09-11 10:51:25 +02:00
parent 16c95d8c5e
commit aab17850d1
13 changed files with 18 additions and 18 deletions

View File

@@ -50,7 +50,7 @@ class OspreyMethodDefinition extends MethodCallExpr {
string getVerb() { result = getMethodName() }
/** Get the resource path to which this method belongs. */
string getResourcePath() { result = getArgument(0).(ConstantString).getStringValue() }
string getResourcePath() { result = getArgument(0).getStringValue() }
}
/** A callback function bound to a REST method. */