mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: eliminate redundant ConstantString casts
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user