diff --git a/Rectangle/CycleSize.swift b/Rectangle/CycleSize.swift index ee4e065c..9a912e81 100644 --- a/Rectangle/CycleSize.swift +++ b/Rectangle/CycleSize.swift @@ -33,16 +33,16 @@ enum CycleSize: Int, CaseIterable { // For example if all cycles are used, the order should be: // 1/2, 2/3, 3/4, 1/4, 1/3 static var sortedSizes: [CycleSize] = { - let sortedDivisions = Self.allCases.sorted(by: { $0.fraction < $1.fraction }) + let sortedSizes = Self.allCases.sorted(by: { $0.fraction < $1.fraction }) - guard let firstDivisionIndex = sortedDivisions.firstIndex(of: firstSize) else { - return sortedDivisions + guard let firstSizeIndex = sortedSizes.firstIndex(of: firstSize) else { + return sortedSizes } - let lessThanFistDivision = sortedDivisions[0..