Skip to content

Commit

Permalink
Merge pull request kishikawakatsumi#50 from kishikawakatsumi/default_…
Browse files Browse the repository at this point in the history
…closure

Fixed forgotten to write the closure as default argument
  • Loading branch information
kishikawakatsumi committed Feb 16, 2015
2 parents f13125e + 53a796b commit 40e6473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/KeychainAccess/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public class Keychain {
}

@availability(iOS, introduced=8.0)
public class func requestSharedWebCredential(#domain: String, account: String, completion: (credentials: [[String: String]], error: NSError?) -> ()) {
public class func requestSharedWebCredential(#domain: String, account: String, completion: (credentials: [[String: String]], error: NSError?) -> () = { credentials, error -> () in }) {
requestSharedWebCredential(domain: domain as String?, account: account as String?, completion: completion)
}

Expand Down

0 comments on commit 40e6473

Please sign in to comment.