Skip to content

Commit d0a5736

Browse files
committed
Fix a TODO
1 parent 6f3b7a4 commit d0a5736

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Helper/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import PackageDescription
33
let package = Package(
44
name: "Helper",
55
dependencies: [
6-
.Package(url: "https://github.com/IngmarStein/CommandLine.git", versions: Version(2, 2, 0, prereleaseIdentifiers: ["pre3"])..<Version(3, 0, 0)),
6+
.Package(url: "https://github.com/IngmarStein/CommandLine.git", versions: Version(2, 2, 0, prereleaseIdentifiers: ["pre3"])..<Version(3, 0, 0))
77
]
88
)

Sources/MainViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ final class MainViewController: NSViewController, ProgressViewControllerDelegate
624624
}
625625

626626
self.processApplicationObserver = NotificationCenter.default.addObserver(forName: processApplicationNotification, object: nil, queue: nil) { notification in
627-
// TODO: remove the intermediary cast
628-
if let dictionary = notification.userInfo as Any as? [String: Any] {
627+
if let dictionary = notification.userInfo {
629628
self.processApplication = Root(dictionary: dictionary)
630629
}
631630
}

Sources/Root.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct Root {
1919
return [ applications, localLibrary ]
2020
}
2121

22-
init(dictionary: [String: Any]) {
22+
init(dictionary: [AnyHashable: Any]) {
2323
self.path = dictionary["Path"] as? String ?? ""
2424
self.languages = dictionary["Languages"] as? Bool ?? false
2525
self.architectures = dictionary["Architectures"] as? Bool ?? false

XPCService/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import PackageDescription
33
let package = Package(
44
name: "XPCService",
55
dependencies: [
6-
.Package(url: "https://github.com/IngmarStein/SMJobKit.git", versions: Version(0, 0, 7)..<Version(1, 0, 0)),
6+
.Package(url: "https://github.com/IngmarStein/SMJobKit.git", versions: Version(0, 0, 16)..<Version(1, 0, 0))
77
]
88
)

0 commit comments

Comments
 (0)