Skip to content

Commit eccbeff

Browse files
committed
Update to SwiftLint (0.15.0)
1 parent 554c5aa commit eccbeff

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

iCookTV/Controllers/HistoryViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class HistoryViewController: UIViewController,
8686
} catch {
8787
Tracker.track(error)
8888
// Remove the malformed cache.
89-
HistoryManager.deleteCache() { _ in
89+
HistoryManager.deleteCache { _ in
9090
self.isLoading = false
9191
}
9292
}

iCookTV/Views/CategoryCell.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ class CategoryCell: UICollectionViewCell {
124124
}
125125

126126
for (grid, url) in urls {
127-
let downloading = ImageDownloader.default.downloadImage(with: url, progressBlock: nil) {
128-
[weak self] image, error, imageURL, originalData in
129-
127+
let downloading = ImageDownloader.default.downloadImage(with: url, progressBlock: nil) { [weak self] image, _, imageURL, _ in
130128
self?.tasks[grid] = nil
131129
guard let image = image, imageURL == url else {
132130
return

scripts/swiftlint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
SWIFTLINT_VERSION="0.13.2"
3+
SWIFTLINT_VERSION="0.15.0"
44

55
if ! command -v swiftlint >/dev/null; then
66
brew install swiftlint

0 commit comments

Comments
 (0)