File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
8686extension 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 }
Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ public class LinkedinHelper: NSObject {
4141
4242
4343extension 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 ( )
You can’t perform that action at this time.
0 commit comments