Skip to content

Commit e0e978b

Browse files
committed
Python: Fix ql4ql alerts
1 parent b568695 commit e0e978b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ predicate dictStoreStep(CfgNode nodeFrom, DictionaryElementContent c, Node nodeT
708708
or
709709
// see https://docs.python.org/3.10/library/stdtypes.html#dict.setdefault
710710
exists(MethodCallNode call |
711-
call.calls(nodeTo.(PostUpdateNode).getPreUpdateNode(), ["setdefault"]) and
712-
call.getArg(0).asExpr().(StrConst).getText() = c.(DictionaryElementContent).getKey() and
711+
call.calls(nodeTo.(PostUpdateNode).getPreUpdateNode(), "setdefault") and
712+
call.getArg(0).asExpr().(StrConst).getText() = c.getKey() and
713713
nodeFrom = call.getArg(1)
714714
)
715715
}

0 commit comments

Comments
 (0)