From 856fb3f1a790c3e7c7031101e39e89d38d8fc9b7 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Tue, 12 Sep 2017 15:59:57 +0300 Subject: [PATCH] [rating_view] [ios] Fixed Jenkins build. --- .../RatingSummaryView/RatingSummaryView.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iphone/Maps/Classes/Components/RatingSummaryView/RatingSummaryView.swift b/iphone/Maps/Classes/Components/RatingSummaryView/RatingSummaryView.swift index d2f07f377e..8d8e05167e 100644 --- a/iphone/Maps/Classes/Components/RatingSummaryView/RatingSummaryView.swift +++ b/iphone/Maps/Classes/Components/RatingSummaryView/RatingSummaryView.swift @@ -177,12 +177,12 @@ import UIKit private var type: RatingSummaryViewSettings.ValueType { switch value { - case 0..<0.2 * maxValue: return .horrible - case 0.2 * maxValue..<0.4 * maxValue: return .bad - case 0.4 * maxValue..<0.6 * maxValue: return .normal - case 0.6 * maxValue..<0.8 * maxValue: return .good - case 0.8 * maxValue...maxValue: return .excellent - default: assert(false) + case 0 ..< 0.2 * maxValue: return .horrible + case 0.2 * maxValue ..< 0.4 * maxValue: return .bad + case 0.4 * maxValue ..< 0.6 * maxValue: return .normal + case 0.6 * maxValue ..< 0.8 * maxValue: return .good + case 0.8 * maxValue ... maxValue: return .excellent + default: assert(false); return .normal } }