File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Common/Sources/Extensions Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ disabled_rules: # rule identifiers to exclude from running
9
9
- inclusive_language
10
10
- trailing_whitespace
11
11
- override_in_extension
12
+ - redundant_void_return
12
13
13
14
type_name :
14
15
max_length : # warning and error
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public extension UIAlertAction {
42
42
/// - Parameter viewController: a view needs to show the alert dialog
43
43
/// - Returns: a cancel alert action with a pop back handler
44
44
static func cancel( _ viewController: UIViewController ) -> UIAlertAction {
45
- let handler = { ( _: UIAlertAction ) in
45
+ let handler = { ( _: UIAlertAction ) -> Void in
46
46
viewController. navigationController? . popViewController ( animated: true ) }
47
47
return cancel ( handler)
48
48
}
@@ -60,7 +60,7 @@ public extension UIAlertAction {
60
60
/// - Parameter viewController: a view needs to show the alert dialog
61
61
/// - Returns: a close alert action with a pop back handler
62
62
static func close( _ viewController: UIViewController ) -> UIAlertAction {
63
- let handler = { ( _: UIAlertAction ) in
63
+ let handler = { ( _: UIAlertAction ) -> Void in
64
64
viewController. navigationController? . popViewController ( animated: true ) }
65
65
return close ( handler)
66
66
}
You can’t perform that action at this time.
0 commit comments