Skip to content

Commit f76ea3f

Browse files
committed
Fix merge bugs in ComposableCoreLocation.
1 parent 7a4a168 commit f76ea3f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Sources/ComposableArchitecture/Internal/LocalizedStringKey.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension LocalizedStringKey: CustomDebugOutputConvertible {
2121
return formatter?.string(for: value) ?? value as! CVarArg
2222
}
2323

24-
return String(format: key, locale: nil, arguments: arguments)
24+
return String(format: key, locale: locale, arguments: arguments)
2525
}
2626

2727
public var debugOutput: String {

Sources/ComposableCoreLocation/Models/Location.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ extension Location: Hashable {
4545
if #available(iOS 13.4, macCatalyst 13.4, macOS 10.15.4, tvOS 13.4, watchOS 6.2, *) {
4646
courseAccuracyIsEqual = lhs.courseAccuracy == rhs.courseAccuracy
4747
speedAccuracyIsEqual = lhs.speedAccuracy == rhs.speedAccuracy
48-
} else {
49-
courseAccuracyIsEqual = true
50-
speedAccuracyIsEqual = true
51-
}
52-
if #available(OSX 10.15, *) {
53-
speedAccuracyIsEqual = lhs.speedAccuracy == rhs.speedAccuracy
5448
floorEqual = lhs.floor == rhs.floor
5549
} else {
5650
courseAccuracyIsEqual = true
@@ -80,14 +74,14 @@ extension Location: Hashable {
8074
hasher.combine(self.coordinate.latitude)
8175
hasher.combine(self.coordinate.longitude)
8276
hasher.combine(self.course)
83-
hasher.combine(self.floor)
8477
hasher.combine(self.horizontalAccuracy)
8578
hasher.combine(self.speed)
8679
hasher.combine(self.timestamp)
8780
hasher.combine(self.verticalAccuracy)
8881

8982
#if compiler(>=5.2)
9083
if #available(iOS 13.4, macCatalyst 13.4, macOS 10.15.4, tvOS 13.4, watchOS 6.2, *) {
84+
hasher.combine(self.floor)
9185
hasher.combine(self.speedAccuracy)
9286
hasher.combine(self.courseAccuracy)
9387
}

0 commit comments

Comments
 (0)