Skip to content

Commit fedd32f

Browse files
committed
JS: address review comment
1 parent 91f43a7 commit fedd32f

File tree

1 file changed

+2
-2
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+2
-2
lines changed

javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,8 @@ private module MarsDB {
812812
/** Gets a data flow node referring to a MarsDB collection. */
813813
private DataFlow::SourceNode getACollection(DataFlow::TypeTracker t) {
814814
t.start() and
815-
// [new] Collection(...)
816-
result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInvocation()
815+
// new Collection(...)
816+
result = getADb(DataFlow::TypeTracker::end()).getAPropertyRead("Collection").getAnInstantiation()
817817
or
818818
exists(DataFlow::TypeTracker t2 | result = getACollection(t2).track(t2, t))
819819
}

0 commit comments

Comments
 (0)