Skip to content

Commit 8056129

Browse files
Napalysasgerf
andauthored
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Co-authored-by: Asger F <asgerf@github.com>
1 parent 75a7ba5 commit 8056129

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

javascript/ql/src/Quality/UnhandledStreamPipe.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,9 @@ class ErrorHandlerRegistration extends DataFlow::MethodCallNode {
122122
}
123123

124124
/**
125-
* Models flow relationships between streams and related operations.
126-
* Connects destination streams to their corresponding pipe call nodes.
127-
* Connects streams to their chainable methods.
125+
* Holds if the stream in `node1` will propagate to `node2`.
128126
*/
129-
private predicate streamFlowStep(DataFlow::Node streamNode, DataFlow::Node relatedNode) {
127+
private predicate streamFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
130128
exists(PipeCall pipe |
131129
streamNode = pipe.getDestinationStream() and
132130
relatedNode = pipe

0 commit comments

Comments
 (0)