Skip to content

Commit 613a165

Browse files
committed
Rust: Simplify QL slightly.
1 parent 4214c83 commit 613a165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/ql/src/queries/security/CWE-312/CleartextLogging.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ module CleartextLoggingConfig implements DataFlow::ConfigSig {
3838

3939
predicate isAdditionalFlowStep(Node node1, Node node2) {
4040
// flow from `a` to `&a`
41-
node2.(Node::ExprNode).asExpr().getExpr().(RefExpr).getExpr() =
42-
node1.(Node::ExprNode).asExpr().getExpr()
41+
node2.asExpr().getExpr().(RefExpr).getExpr() = node1.asExpr().getExpr()
4342
}
4443

4544
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {

0 commit comments

Comments
 (0)