Skip to content

Commit ac4debf

Browse files
committed
Fixes for objective-c compiling
1 parent f554e13 commit ac4debf

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

LinkedInSignIn/Classes/LinkedInLoginVC.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ extension LinkedInLoginVC: UIWebViewDelegate {
7878
}
7979

8080
func webView(_ webView: UIWebView, didFailLoadWithError error: Error) {
81-
self.failure(error)
81+
self.failureError(error)
8282
}
8383
}
8484

8585

8686
extension LinkedInLoginVC {
87-
func failure(_ error: Error) {
87+
func failureError(_ error: Error) {
8888
if let failure = failure {
8989
failure(LinkedInLoginError.error(error.localizedDescription))
9090
}
9191
}
9292

93-
func failure(_ error: String) {
93+
func failureString(_ error: String) {
9494
if let failure = failure {
9595
failure(LinkedInLoginError.error(error))
9696
}

LinkedInSignIn/Classes/LinkedinHelper.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ public class LinkedinHelper: NSObject {
4141

4242

4343
extension LinkedinHelper {
44-
func failure(_ error: Error) {
44+
func failureError(_ error: Error) {
4545
if let failure = failure {
4646
failure(LinkedInLoginError.error(error.localizedDescription))
4747
}
4848
}
4949

50-
func failure(_ error: String) {
50+
func failureString(_ error: String) {
5151
if let failure = failure {
5252
failure(LinkedInLoginError.error(error))
5353
}
@@ -84,13 +84,13 @@ extension LinkedinHelper {
8484
if let accessToken = dataDictionary["access_token"] as? String {
8585
self.completion(accessToken)
8686
} else {
87-
self.failure("Could not get access_token from json")
87+
self.failureString("Could not get access_token from json")
8888
}
8989
} catch {
90-
self.failure("Could not convert JSON data into a dictionary.")
90+
self.failureString("Could not convert JSON data into a dictionary.")
9191
}
9292
} else {
93-
self.failure("Received error with code: \(statusCode)")
93+
self.failureString("Received error with code: \(statusCode)")
9494
}
9595
}
9696
task.resume()

0 commit comments

Comments
 (0)