Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit f04d9bf

Browse files
Merge pull request #14 from wordpress-mobile/issue/updating-authenticator-delegate
Updating Authenticator delegate
2 parents 8f33c2a + be1e635 commit f04d9bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticatorDelegateProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public protocol WordPressAuthenticatorDelegate: class {
6161
/// - credentials: WordPress Site Credentials.
6262
/// - onCompletion: Closure to be executed on completion.
6363
///
64-
func sync(credentials: WordPressCredentials, onCompletion: @escaping (Error?) -> Void)
64+
func sync(credentials: WordPressCredentials, onCompletion: @escaping () -> Void)
6565

6666
/// Signals the Host App that a given Analytics Event has occurred.
6767
///

WordPressAuthenticator/Signin/LoginSelfHostedViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ extension LoginSelfHostedViewController {
274274
}
275275

276276
let credentials = WordPressCredentials.wporg(username: username, password: password, xmlrpc: xmlrpc, options: options)
277-
delegate.sync(credentials: credentials) { [weak self] _ in
277+
delegate.sync(credentials: credentials) { [weak self] in
278278

279279
NotificationCenter.default.post(name: Foundation.Notification.Name(rawValue: WordPressAuthenticator.WPSigninDidFinishNotification), object: nil)
280280
self?.showLoginEpilogue(for: credentials)

WordPressAuthenticator/Signin/LoginViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ extension LoginViewController {
220220

221221
configureStatusLabel(NSLocalizedString("Getting account information", comment: "Alerts the user that wpcom account information is being retrieved."))
222222

223-
authenticationDelegate.sync(credentials: credentials) { [weak self] _ in
223+
authenticationDelegate.sync(credentials: credentials) { [weak self] in
224224

225225
self?.configureStatusLabel("")
226226
self?.configureViewLoading(false)

WordPressAuthenticator/Signup/SignupGoogleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private extension SignupGoogleViewController {
113113

114114
/// Existing Account: We'll synchronize all the things before proceeding to the next screen.
115115
///
116-
self?.authenticationDelegate.sync(credentials: credentials) { _ in
116+
self?.authenticationDelegate.sync(credentials: credentials) {
117117
SVProgressHUD.dismiss()
118118
self?.wasLoggedInInstead(with: credentials)
119119
}

0 commit comments

Comments
 (0)