Skip to content

Commit ae74edb

Browse files
Napalysasgerf
andauthored
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Co-authored-by: Asger F <[email protected]>
1 parent d43695c commit ae74edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Quality/UnhandledStreamPipe.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private predicate streamFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
141141
* Tracks the result of a pipe call as it flows through the program.
142142
*/
143143
private DataFlow::SourceNode destinationStreamRef(DataFlow::TypeTracker t, PipeCall pipe) {
144-
t.start() and result = pipe.getALocalSource()
144+
t.start() and result = pipe
145145
or
146146
exists(DataFlow::SourceNode prev |
147147
prev = destinationStreamRef(t.continue(), pipe) and

0 commit comments

Comments
 (0)