@@ -55,39 +55,31 @@ public extension Measurement {
55
55
/// - lhs: The first value to add.
56
56
/// - rhs: The second value to add.
57
57
static func += ( lhs: inout Measurement , rhs: Measurement ) {
58
- // swiftlint:disable shorthand_operator
59
58
lhs = lhs + rhs
60
- // swiftlint:enable shorthand_operator
61
59
}
62
60
63
61
/// SwifterSwift: Subtracts the second value from the first and stores the difference in the left-hand-side variable.
64
62
/// - Parameters:
65
63
/// - lhs: A `Measurement` value.
66
64
/// - rhs: The value to subtract from `lhs`.
67
65
static func -= ( lhs: inout Measurement , rhs: Measurement ) {
68
- // swiftlint:disable shorthand_operator
69
66
lhs = lhs - rhs
70
- // swiftlint:enable shorthand_operator
71
67
}
72
68
73
69
/// SwifterSwift: Multiplies two values and stores the result in the left-hand-side variable.
74
70
/// - Parameters:
75
71
/// - lhs: The first value to multiply.
76
72
/// - rhs: The second value to multiply.
77
73
static func *= ( lhs: inout Measurement , rhs: Double ) {
78
- // swiftlint:disable shorthand_operator
79
74
lhs = lhs * rhs
80
- // swiftlint:enable shorthand_operator
81
75
}
82
76
83
77
/// SwifterSwift: Divides the first value by the second and stores the quotient in the left-hand-side variable.
84
78
/// - Parameters:
85
79
/// - lhs: The value to divide.
86
80
/// - rhs: The value to divide `lhs` by. `rhs` must not be zero.
87
81
static func /= ( lhs: inout Measurement , rhs: Double ) {
88
- // swiftlint:disable shorthand_operator
89
82
lhs = lhs / rhs
90
- // swiftlint:enable shorthand_operator
91
83
}
92
84
}
93
85
0 commit comments