     ///     - `self`, if it is inside the given limits.
     ///     - `lowerBound` of the given limits, if `self` is smaller than it.
     public func clamped(to limits: PartialRangeFrom<Self>) -> Self {
-        return limits.lowerBound > self ? limits.lowerBound
-            : self
-        // swiftlint:disable:last too_much_unindentation
+        if limits.lowerBound > self {
+            return limits.lowerBound
+        } else {
+            return self
+        }
     }
 
     /// Returns `self` clamped to the given limits.

    ///     - `self`, if it is inside the given limits.
    ///     - `upperBound` of the given limits, if `self` is greater than it.
    public func clamped(to limits: PartialRangeThrough<Self>) -> Self {
        return limits.upperBound < self ? limits.upperBound
            : self
        // swiftlint:disable:last too_much_unindentation
    }

    // MARK: Mutating Variants

    ///     - `lowerBound` of the given limits, if `self` is smaller than it.
    ///     - `upperBound` of the given limits, if `self` is greater than it.
    public func clamped(to limits: ClosedRange<Self>) -> Self {
        if limits.lowerBound > self {
            return limits.lowerBound
        } else if limits.upperBound < self {
            return limits.upperBound
        } else {
            return self
        }
    }

    /// Returns `self` clamped to the given limits.
