Skip to content

Commit 7486742

Browse files
committed
JS: Fix model of _.sortBy
1 parent 82a4b17 commit 7486742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/LodashUnderscore.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ module LodashUnderscore {
278278

279279
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
280280
input = "Argument[0].ArrayElement" and
281-
output = ["Argument[1].Parameter[1]", "ReturnValue.ArrayElement"] and
281+
output = ["Argument[1].Parameter[0]", "ReturnValue.ArrayElement"] and
282282
preservesValue = true
283283
}
284284
}

0 commit comments

Comments
 (0)