Skip to content

Commit 932b453

Browse files
committed
[swiftlint] Fix rule: trailing_newline
warning: Trailing Newline Violation: Files should have a single trailing newline.
1 parent 6c3dcd4 commit 932b453

File tree

10 files changed

+3
-11
lines changed

10 files changed

+3
-11
lines changed

B-Tree/Tests/Tests/BTreeNodeTests.swift

-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ class BTreeNodeTests: XCTestCase {
5151
XCTAssertEqual(root.children!.count, 2)
5252
}
5353
}
54-

Comb Sort/Comb Sort.playground/Contents.swift

-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ while i < 1000 {
1616
i += 1
1717
}
1818
combSort(bigArray)
19-
20-

Convex Hull/Convex Hull/AppDelegate.swift

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5454

5555

5656
}
57-

Fixed Size Array/FixedSizeArray.playground/Contents.swift

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ array.append(2)
5353
array[1]
5454
array.removeAt(index: 0)
5555
array.removeAll()
56-

Insertion Sort/InsertionSort.playground/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ func insertionSort<T>(_ array: [T], _ isOrderedBefore: (T, T) -> Bool) -> [T] {
1616

1717
let list = [ 10, -1, 3, 9, 2, 27, 8, 5, 1, 3, 0, 26 ]
1818
insertionSort(list, <)
19-
insertionSort(list, >)
19+
insertionSort(list, >)

Linked List/LinkedList.playground/Contents.swift

-1
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,3 @@ let listArrayLiteral2: LinkedList = ["Swift", "Algorithm", "Club"]
389389
listArrayLiteral2.count // 3
390390
listArrayLiteral2[0] // "Swift"
391391
listArrayLiteral2.removeLast() // "Club"
392-

Miller-Rabin Primality Test/MRPrimality.playground/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ mrPrimalityTest(178426363)
2121
mrPrimalityTest(32415187747)
2222

2323
// With iteration
24-
mrPrimalityTest(32416190071, iteration: 10)
24+
mrPrimalityTest(32416190071, iteration: 10)

Run-Length Encoding/RLE.playground/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ func runTests() -> Bool {
113113
return result
114114
}
115115

116-
runTests()
116+
runTests()

Trie/Trie/Trie/AppDelegate.swift

-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ class AppDelegate: NSObject, NSApplicationDelegate {
2323

2424

2525
}
26-

Trie/Trie/Trie/ViewController.swift

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ class ViewController: NSViewController {
2424

2525

2626
}
27-

0 commit comments

Comments
 (0)