mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-29 12:35:00 +08:00
Thin SwiftLint ruleset (#704)
* Thin SwiftLint ruleset * Disabled trailing_whitespace rule
This commit is contained in:
committed by
Ryan Nystrom
parent
a0f1bcdfcb
commit
f213bac924
@@ -9,17 +9,17 @@
|
||||
import UIKit
|
||||
|
||||
extension UIAlertController {
|
||||
|
||||
|
||||
func addActions(_ actions: [UIAlertAction?]) {
|
||||
for anAction in actions {
|
||||
self.add(action: anAction)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func add(action: UIAlertAction?) {
|
||||
if let action = action {
|
||||
self.addAction(action)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user