Skip to content

Commit

Permalink
[swiftlint] Fix: closure_parameter_position
Browse files Browse the repository at this point in the history
warning: Closure Parameter Position Violation: Closure parameters should be on the same line as opening brace.
  • Loading branch information
jawwad committed Apr 29, 2017
1 parent 821bee3 commit 55eba6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions B-Tree/BTree.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ bTree[3]

bTree.remove(2)

bTree.traverseKeysInOrder {
key in
bTree.traverseKeysInOrder { key in
print(key)
}

Expand Down
3 changes: 1 addition & 2 deletions Shunting Yard/ShuntingYard.playground/Sources/Stack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public struct Stack<T> {
extension Stack: Sequence {
public func makeIterator() -> AnyIterator<T> {
var curr = self
return AnyIterator {
_ -> T? in
return AnyIterator { _ -> T? in
return curr.pop()
}
}
Expand Down
7 changes: 3 additions & 4 deletions Skip-List/SkipList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ public struct Stack<T> {
extension Stack: Sequence {
public func makeIterator() -> AnyIterator<T> {
var curr = self
return AnyIterator {
_ -> T? in
return curr.pop()
}
return AnyIterator { _ -> T? in
return curr.pop()
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions Stack/Stack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public struct Stack<T> {
extension Stack: Sequence {
public func makeIterator() -> AnyIterator<T> {
var curr = self
return AnyIterator {
_ -> T? in
return AnyIterator { _ -> T? in
return curr.pop()
}
}
Expand Down

0 comments on commit 55eba6e

Please sign in to comment.