Skip to content

Commit 5a9f8f1

Browse files
committed
Removes unnecessary swiftlint controls
1 parent b721c4b commit 5a9f8f1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/SwifterSwift/Foundation/MeasurementExtensions.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,39 +55,31 @@ public extension Measurement {
5555
/// - lhs: The first value to add.
5656
/// - rhs: The second value to add.
5757
static func += (lhs: inout Measurement, rhs: Measurement) {
58-
// swiftlint:disable shorthand_operator
5958
lhs = lhs + rhs
60-
// swiftlint:enable shorthand_operator
6159
}
6260

6361
/// SwifterSwift: Subtracts the second value from the first and stores the difference in the left-hand-side variable.
6462
/// - Parameters:
6563
/// - lhs: A `Measurement` value.
6664
/// - rhs: The value to subtract from `lhs`.
6765
static func -= (lhs: inout Measurement, rhs: Measurement) {
68-
// swiftlint:disable shorthand_operator
6966
lhs = lhs - rhs
70-
// swiftlint:enable shorthand_operator
7167
}
7268

7369
/// SwifterSwift: Multiplies two values and stores the result in the left-hand-side variable.
7470
/// - Parameters:
7571
/// - lhs: The first value to multiply.
7672
/// - rhs: The second value to multiply.
7773
static func *= (lhs: inout Measurement, rhs: Double) {
78-
// swiftlint:disable shorthand_operator
7974
lhs = lhs * rhs
80-
// swiftlint:enable shorthand_operator
8175
}
8276

8377
/// SwifterSwift: Divides the first value by the second and stores the quotient in the left-hand-side variable.
8478
/// - Parameters:
8579
/// - lhs: The value to divide.
8680
/// - rhs: The value to divide `lhs` by. `rhs` must not be zero.
8781
static func /= (lhs: inout Measurement, rhs: Double) {
88-
// swiftlint:disable shorthand_operator
8982
lhs = lhs / rhs
90-
// swiftlint:enable shorthand_operator
9183
}
9284
}
9385

0 commit comments

Comments
 (0)