mirror of
https://github.com/mssun/passforios.git
synced 2025-12-20 09:13:44 +01:00
Enable SwiftLint rule 'private_action' and fix all violations
This commit is contained in:
committed by
Mingshen Sun
parent
70d605e412
commit
fe380d4d65
@@ -110,7 +110,7 @@ class GitRepositorySettingsTableViewController: UITableViewController {
|
||||
// MARK: - Segue Handlers
|
||||
|
||||
@IBAction
|
||||
func save(_: Any) {
|
||||
private func save(_: Any) {
|
||||
guard let gitURLTextFieldText = gitURLTextField.text, let gitURL = URL(string: gitURLTextFieldText.trimmed) else {
|
||||
Utils.alert(title: "CannotSave".localize(), message: "SetGitRepositoryUrl".localize(), controller: self)
|
||||
return
|
||||
@@ -224,7 +224,7 @@ class GitRepositorySettingsTableViewController: UITableViewController {
|
||||
}
|
||||
|
||||
@IBAction
|
||||
func importSSHKey(segue: UIStoryboardSegue) {
|
||||
private func importSSHKey(segue: UIStoryboardSegue) {
|
||||
guard let sourceController = segue.source as? KeyImporter, sourceController.isReadyToUse() else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user