Skip to content

Commit c113cfd

Browse files
committed
JS: Autoformat
1 parent 2c9a6e7 commit c113cfd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

javascript/ql/src/semmle/javascript/dataflow/internal/FunctionWrapperSteps.qll

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
private import javascript
2-
32
private import FlowSteps as FlowSteps
43
private import semmle.javascript.internal.CachedStages
54

@@ -21,9 +20,7 @@ private module Cached {
2120
private module Stage {
2221
// Forces the module to be computed as part of the type-tracking stage.
2322
cached
24-
predicate forceStage() {
25-
Stages::TypeTracking::ref()
26-
}
23+
predicate forceStage() { Stages::TypeTracking::ref() }
2724
}
2825

2926
/**
@@ -75,7 +72,9 @@ private module Cached {
7572
// function wrap(f) { return (x, y) => f(x, y) };
7673
//
7774
// add steps through calls to that function: `g -> wrap(g)`
78-
exists(DataFlow::FunctionNode wrapperFunction, DataFlow::SourceNode param, DataFlow::Node paramUse |
75+
exists(
76+
DataFlow::FunctionNode wrapperFunction, DataFlow::SourceNode param, DataFlow::Node paramUse
77+
|
7978
FlowSteps::argumentPassing(succ, pred, wrapperFunction.getFunction(), param) and
8079
param.flowsTo(paramUse) and
8180
functionForwardingStep(paramUse, wrapperFunction.getReturnNode().getALocalSource())
@@ -133,7 +132,9 @@ private module Cached {
133132
// function wrap(f) { return (x, y) => f(x, y) };
134133
//
135134
// add steps through calls to that function: `g -> wrap(g)`
136-
exists(DataFlow::FunctionNode wrapperFunction, DataFlow::SourceNode param, DataFlow::Node paramUse |
135+
exists(
136+
DataFlow::FunctionNode wrapperFunction, DataFlow::SourceNode param, DataFlow::Node paramUse
137+
|
137138
FlowSteps::argumentPassing(succ, pred, wrapperFunction.getFunction(), param) and
138139
param.flowsTo(paramUse) and
139140
functionOneWayForwardingStep(paramUse, wrapperFunction.getReturnNode().getALocalSource())

0 commit comments

Comments
 (0)