Mark some classes as final.

This commit is contained in:
Damiano Galassi committed 2019-03-05 10:41:54 +01:00
1 parent 28c2dda515
commit f993d8dd81
40 files changed
+51 -55

No files matched your search

+2 -4
View File
@@ -8,7 +8,7 @@
import Foundation
import IOKit
class Queue {
final class Queue {
static let Working = NSNotification.Name(rawValue: "QueueWorkingNotification")
static let Completed = NSNotification.Name(rawValue: "QueueCompletedNotification")
@@ -56,9 +56,7 @@ class Queue {
items = Array()
}
for item in items where item.status == .working {
item.status = .failed
}
items.filter { $0.status == .working } .forEach { $0.status = .failed }
}
func saveToDisk() throws {