[rating_view] [ios] Fixed Jenkins build.

This commit is contained in:
Ilya Grechuhin 2017-09-12 15:59:57 +03:00 committed by Sergey Yershov
parent fd6a6e38db
commit 856fb3f1a7

View file

@ -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
}
}