Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

Commit f9d9397

Browse files
committed
disable implicit_return
1 parent eae3108 commit f9d9397

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
disabled_rules:
22
- identifier_name
3+
- implicit_return
34
- multiple_closures_with_trailing_closure
45
- empty_enum_arguments
56
- explicit_top_level_acl

ImageTransition/ImageTransitionDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ extension ImageTransitionDelegate: UIViewControllerTransitioningDelegate {
2727
public func animationController(forPresented presented: UIViewController,
2828
presenting: UIViewController,
2929
source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
30-
return ImageTransitioning(duration: presentDuration, animationOptions: presentAnimationOptions)
30+
ImageTransitioning(duration: presentDuration, animationOptions: presentAnimationOptions)
3131
}
3232

3333
public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
34-
return ImageTransitioning(duration: dismissDuration, animationOptions: dismissAnimationOptions)
34+
ImageTransitioning(duration: dismissDuration, animationOptions: dismissAnimationOptions)
3535
}
3636
}
3737

ImageTransition/ImageTransitioning.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal final class ImageTransitioning: NSObject, UIViewControllerAnimatedTrans
1818
}
1919

2020
internal func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
21-
return duration
21+
duration
2222
}
2323

2424
internal func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {

ImageTransition/UIImage+.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import UIKit
1010

1111
internal extension UIImage {
1212
var area: CGFloat {
13-
return size.width * size.height
13+
size.width * size.height
1414
}
1515

1616
func largerCompared(with comparedImage: UIImage) -> UIImage {
17-
return area > comparedImage.area ? self : comparedImage
17+
area > comparedImage.area ? self : comparedImage
1818
}
1919
}

ImageTransition/UIView+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UIKit
1010

1111
internal extension UIView {
1212
func convertFrame(to view: UIView) -> CGRect {
13-
return convert(bounds, to: view)
13+
convert(bounds, to: view)
1414
}
1515

1616
func convertCenter(to view: UIView) -> CGPoint {

0 commit comments

Comments
 (0)