Skip to content

Commit ce204ac

Browse files
committed
Python: Moves statement out of quantifier that it didnt need to be in
1 parent 19c1ee5 commit ce204ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/Expressions/WrongNumberArgumentsForFormat.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import python
1616
import semmle.python.strings
1717

1818
predicate string_format(BinaryExpr operation, StrConst str, Value args, AstNode origin) {
19-
exists(Value fmt, Context ctx | operation.getOp() instanceof Mod |
19+
operation.getOp() instanceof Mod and
20+
exists(Value fmt, Context ctx |
2021
operation.getLeft().pointsTo(ctx, fmt, str) and
2122
operation.getRight().pointsTo(ctx, args, origin)
2223
)

0 commit comments

Comments
 (0)