Skip to content

Commit 55eba6e

Browse files
committed
[swiftlint] Fix: closure_parameter_position
warning: Closure Parameter Position Violation: Closure parameters should be on the same line as opening brace.
1 parent 821bee3 commit 55eba6e

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

B-Tree/BTree.playground/Contents.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ bTree[3]
1414

1515
bTree.remove(2)
1616

17-
bTree.traverseKeysInOrder {
18-
key in
17+
bTree.traverseKeysInOrder { key in
1918
print(key)
2019
}
2120

Shunting Yard/ShuntingYard.playground/Sources/Stack.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public struct Stack<T> {
3131
extension Stack: Sequence {
3232
public func makeIterator() -> AnyIterator<T> {
3333
var curr = self
34-
return AnyIterator {
35-
_ -> T? in
34+
return AnyIterator { _ -> T? in
3635
return curr.pop()
3736
}
3837
}

Skip-List/SkipList.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ public struct Stack<T> {
5252
extension Stack: Sequence {
5353
public func makeIterator() -> AnyIterator<T> {
5454
var curr = self
55-
return AnyIterator {
56-
_ -> T? in
57-
return curr.pop()
58-
}
55+
return AnyIterator { _ -> T? in
56+
return curr.pop()
57+
}
5958
}
6059
}
6160

Stack/Stack.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public struct Stack<T> {
3030
extension Stack: Sequence {
3131
public func makeIterator() -> AnyIterator<T> {
3232
var curr = self
33-
return AnyIterator {
34-
_ -> T? in
33+
return AnyIterator { _ -> T? in
3534
return curr.pop()
3635
}
3736
}

0 commit comments

Comments
 (0)