Skip to content

Commit 5c6134d

Browse files
committed
a bit of self-review and an auto-format
1 parent ad813ef commit 5c6134d

2 files changed

Lines changed: 94 additions & 89 deletions

File tree

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private module ExceptionalPromiseFlow {
215215

216216
override predicate store(DataFlow::Node pred, DataFlow::Node succ, string prop) {
217217
prop = rejectField() and
218-
pred = getCallback([0..1]).getExceptionalReturn() and
218+
pred = getCallback(0).getExceptionalReturn() and
219219
succ = this
220220
}
221221
}

0 commit comments

Comments
 (0)