Ruby: update some uses of getConstantValue()

This commit is contained in:
Asger F
2022-10-17 14:44:47 +02:00
parent 156964bfc9
commit 436cc60138
8 changed files with 16 additions and 29 deletions

View File

@@ -112,7 +112,7 @@ private class TypeFromCodeQL extends ModelInput::TypeModel {
override DataFlow::Node getASource(string package, string type) {
package = "test" and
type = "FooOrBar" and
result.asExpr().getExpr().getConstantValue().getString() = "magic_string"
result.getConstantValue().getString() = "magic_string"
}
override API::Node getAnApiNode(string package, string type) {