Skip to content

Commit 5d7568e

Browse files
committed
Fix a subtle naming error when implementing HelperProtocol in the Helper class
1 parent d0a5736 commit 5d7568e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Helper/Sources/Helper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ final class Helper: NSObject, NSXPCListenerDelegate {
5959
exitWithCode(Int(EXIT_SUCCESS))
6060
}
6161

62-
func connectWithEndpointReply(reply: (NSXPCListenerEndpoint) -> Void) {
62+
func connectWithEndpointReply(_ reply: (NSXPCListenerEndpoint) -> Void) {
6363
reply(listener.endpoint)
6464
}
6565

66-
func getVersionWithReply(reply: (String) -> Void) {
66+
func getVersionWithReply(_ reply: (String) -> Void) {
6767
reply(version)
6868
}
6969

Sources/MainViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ final class MainViewController: NSViewController, ProgressViewControllerDelegate
354354
}
355355

356356
self.processApplication = nil
357-
self.dismiss(self.progressViewController!)
357+
self.progressViewController?.dismiss(self)
358358

359359
let progress = self.progress!
360360
let byteCount = ByteCountFormatter.string(fromByteCount: max(progress.completedUnitCount, 0), countStyle: .file)

scripts/install-swift.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -ev
3-
SWIFT_SNAPSHOT="swift-3.0-PREVIEW-6"
3+
SWIFT_SNAPSHOT="swift-3.0.2-RELEASE"
44

55
echo "Installing ${SWIFT_SNAPSHOT}..."
66
if [ ! -f "${SWIFT_SNAPSHOT}-osx.pkg" ]; then

0 commit comments

Comments
 (0)