Skip to content

Commit 9ac46d4

Browse files
committed
Swift: autoformat
1 parent f7e4fb0 commit 9ac46d4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

+6-5
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,14 @@ private module Cached {
264264
// Flow from the last component in a key path chain to
265265
// the return node for the key path.
266266
exists(KeyPathExpr keyPath |
267-
nodeFrom.(KeyPathComponentNodeImpl).getComponent() = keyPath.getComponent(keyPath.getNumberOfComponents() - 1) and
267+
nodeFrom.(KeyPathComponentNodeImpl).getComponent() =
268+
keyPath.getComponent(keyPath.getNumberOfComponents() - 1) and
268269
nodeTo.(KeyPathReturnNodeImpl).getKeyPathExpr() = keyPath
269270
)
270271
or
271272
exists(KeyPathExpr keyPath |
272-
nodeTo.(KeyPathComponentPostUpdateNode).getComponent() = keyPath.getComponent(keyPath.getNumberOfComponents()-1) and
273+
nodeTo.(KeyPathComponentPostUpdateNode).getComponent() =
274+
keyPath.getComponent(keyPath.getNumberOfComponents() - 1) and
273275
nodeFrom.(KeyPathReturnPostUpdateNode).getKeyPathExpr() = keyPath
274276
)
275277
or
@@ -958,9 +960,8 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
958960
// the first node is either the previous element in the chain
959961
node1.(KeyPathComponentNodeImpl).getComponent().getNextComponent() = component
960962
or
961-
// or the start node, if this is the first component in the chain
962-
component =
963-
node1.(KeyPathParameterNode).getComponent(0)
963+
// or the start node, if this is the first component in the chain
964+
component = node1.(KeyPathParameterNode).getComponent(0)
964965
|
965966
component = node2.(KeyPathComponentNodeImpl).getComponent() and
966967
(

0 commit comments

Comments
 (0)