Skip to content

Commit 98143b0

Browse files
committed
JS: Autoformat
1 parent 54a91c7 commit 98143b0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

javascript/ql/src/meta/alerts/CallGraph.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import javascript
1212

1313
from DataFlow::Node invoke, Function f, string kind
14-
where invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call" or
15-
invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
14+
where
15+
invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call"
16+
or
17+
invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
1618
select invoke, kind + " to $@", f, f.describe()

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ predicate shouldTrackProperties(AbstractValue obj) {
2525
*/
2626
pragma[noinline]
2727
predicate returnExpr(Function f, DataFlow::Node source, DataFlow::Node sink) {
28-
sink.asExpr() = f.getAReturnedExpr() and source = sink and
28+
sink.asExpr() = f.getAReturnedExpr() and
29+
source = sink and
2930
not f = any(SetterMethodDeclaration decl).getBody()
3031
}
3132

0 commit comments

Comments
 (0)