Skip to content

Commit 49a8a48

Browse files
committed
autoformat
1 parent cec2cd3 commit 49a8a48

File tree

2 files changed

+5
-3
lines changed
  • javascript/ql
    • src/semmle/javascript/dataflow
    • test/library-tests/frameworks/Sets

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ class ArrayCreationNode extends DataFlow::ValueNode, DataFlow::SourceNode {
621621
result = this.(ArrayConstructorInvokeNode).getSize()
622622
}
623623

624-
/**
624+
/**
625625
* Gets a data flow node corresponding to an array of values being passed as
626626
* individual arguments to this array creation.
627-
*/
627+
*/
628628
DataFlow::Node getASpreadArgument() {
629629
exists(SpreadElement arg | arg = getAnElement().getEnclosingExpr() |
630630
result = DataFlow::valueNode(arg.getOperand())

javascript/ql/test/library-tests/frameworks/Sets/test.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ private import semmle.javascript.dataflow.internal.StepSummary
44
class Config extends DataFlow::Configuration {
55
Config() { this = "Config" }
66

7-
override predicate isSource(DataFlow::Node source) { source.(DataFlow::CallNode).getCalleeName() = "source" }
7+
override predicate isSource(DataFlow::Node source) {
8+
source.(DataFlow::CallNode).getCalleeName() = "source"
9+
}
810

911
override predicate isSink(DataFlow::Node sink) {
1012
exists(DataFlow::CallNode call | call.getCalleeName() = "sink" | call.getAnArgument() = sink)

0 commit comments

Comments
 (0)