Skip to content

Commit 5ab595d

Browse files
committed
JS: Autoformat
1 parent 4ca3ac5 commit 5ab595d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

javascript/ql/test/library-tests/RecursionPrevention/SourceNodeFlowsTo.ql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
* This tests adds a negative dependency `flowsTo --!--> SourceNode`
55
* so that the undesired edge `SourceNode --> flowsTo` completes a negative cycle.
66
*/
7+
78
import javascript
89

910
class BadSourceNode extends DataFlow::SourceNode {
10-
BadSourceNode() {
11-
this.(DataFlow::PropRead).getPropertyName() = "foo"
12-
}
11+
BadSourceNode() { this.(DataFlow::PropRead).getPropertyName() = "foo" }
1312

14-
override predicate flowsTo(DataFlow::Node node) {
15-
not node instanceof DataFlow::SourceNode
16-
}
13+
override predicate flowsTo(DataFlow::Node node) { not node instanceof DataFlow::SourceNode }
1714
}
1815

1916
select "Success"

0 commit comments

Comments
 (0)