Skip to content

Commit c77884b

Browse files
RasmusWLjorgectf
andauthored
Python: Apply suggestions from code review
Co-authored-by: Jorge <[email protected]>
1 parent 68f526d commit c77884b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/ql/src/semmle/python/frameworks/MarkupSafe.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ private module MarkupSafeModel {
6262

6363
StringConcat() {
6464
node.getOp() instanceof Add and
65-
(
66-
instance().asCfgNode() = node.getLeft()
67-
or
68-
instance().asCfgNode() = node.getRight()
69-
)
65+
instance().asCfgNode() in [node.getLeft(), node.getRight()]
7066
}
7167
}
7268

0 commit comments

Comments
 (0)