autoformat

This commit is contained in:
Erik Krogh Kristensen
2020-03-11 13:13:44 +01:00
parent fa26ce9f4b
commit 91bc124f78
2 changed files with 3 additions and 5 deletions

View File

@@ -587,7 +587,7 @@ class ArrayConstructorInvokeNode extends DataFlow::InvokeNode {
}
/**
* A data flow node corresponding to the creation or a new array, either through an array literal,
* A data flow node corresponding to the creation or a new array, either through an array literal,
* an invocation of the `Array` constructor, or the `Array.from` method.
*
*

View File

@@ -3,9 +3,7 @@ import javascript
class ArrayFlowConfig extends DataFlow::Configuration {
ArrayFlowConfig() { this = "ArrayFlowConfig" }
override predicate isSource(DataFlow::Node source) {
source.asExpr().getStringValue() = "source"
}
override predicate isSource(DataFlow::Node source) { source.asExpr().getStringValue() = "source" }
override predicate isSink(DataFlow::Node sink) {
sink = any(DataFlow::CallNode call | call.getCalleeName() = "sink").getAnArgument()
@@ -14,4 +12,4 @@ class ArrayFlowConfig extends DataFlow::Configuration {
from ArrayFlowConfig config, DataFlow::Node src, DataFlow::Node snk
where config.hasFlow(src, snk)
select src, snk
select src, snk