Address comments

This commit is contained in:
Arthur Baars
2022-03-28 13:13:15 +02:00
parent 65f8f56095
commit 85c4daa2bf
3 changed files with 16 additions and 16 deletions

View File

@@ -4,5 +4,5 @@ import codeql.ruby.security.performance.RegExpTreeView::RegExpPatterns as RegExp
/** Holds if `node` may evaluate to `value` */
predicate mayHaveStringValue(DataFlow::Node node, string value) {
node.asExpr().getExpr().getConstantValue().getString() = value
node.asExpr().getConstantValue().getString() = value
}