Some cleanup especially regarding method references (#516)
* Remove superfluous method arguments in method references * Use 'Self' for internal static access * Convert static to instance field in singleton class * Remove class name prefix in references to local methods * Remove nested frameworks in all extensions and frameworks
This commit is contained in:
parent
e1cbcb5d7a
commit
32b7c9b635
18 changed files with 57 additions and 57 deletions
|
|
@ -23,7 +23,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
|||
}()
|
||||
|
||||
private lazy var passwordsTableEntries = PasswordStore.shared.fetchPasswordEntityCoreData(withDir: false)
|
||||
.map(PasswordTableEntry.init(_:))
|
||||
.map(PasswordTableEntry.init)
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
|
@ -44,7 +44,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
|||
self.credentialProvider.identifier = serviceIdentifiers.first
|
||||
let url = serviceIdentifiers.first
|
||||
.map(\.identifier)
|
||||
.flatMap(URL.init(string:))
|
||||
.flatMap(URL.init)
|
||||
self.passwordsViewController.navigationItem.prompt = url?.host
|
||||
self.passwordsViewController.showPasswordsWithSuggestion(matching: url?.host ?? "")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue