Skip to content

Commit 91bc124

Browse files
committed
autoformat
1 parent fa26ce9 commit 91bc124

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

javascript/ql/src/semmle/javascript/dataflow/Nodes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ class ArrayConstructorInvokeNode extends DataFlow::InvokeNode {
587587
}
588588

589589
/**
590-
* A data flow node corresponding to the creation or a new array, either through an array literal,
590+
* A data flow node corresponding to the creation or a new array, either through an array literal,
591591
* an invocation of the `Array` constructor, or the `Array.from` method.
592592
*
593593
*

javascript/ql/test/library-tests/Arrays/DataFlow.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import javascript
33
class ArrayFlowConfig extends DataFlow::Configuration {
44
ArrayFlowConfig() { this = "ArrayFlowConfig" }
55

6-
override predicate isSource(DataFlow::Node source) {
7-
source.asExpr().getStringValue() = "source"
8-
}
6+
override predicate isSource(DataFlow::Node source) { source.asExpr().getStringValue() = "source" }
97

108
override predicate isSink(DataFlow::Node sink) {
119
sink = any(DataFlow::CallNode call | call.getCalleeName() = "sink").getAnArgument()
@@ -14,4 +12,4 @@ class ArrayFlowConfig extends DataFlow::Configuration {
1412

1513
from ArrayFlowConfig config, DataFlow::Node src, DataFlow::Node snk
1614
where config.hasFlow(src, snk)
17-
select src, snk
15+
select src, snk

0 commit comments

Comments
 (0)