Skip to content

Commit fbd5874

Browse files
authored
Fix equality checks in client models. (#113)
1 parent f277a73 commit fbd5874

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Examples/LocationManager/LocationManager/LocalSearchClient/LocalSearchModels.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct MapItem: Equatable {
8383
&& lhs.placemark.subLocality == rhs.placemark.subLocality
8484
&& lhs.placemark.administrativeArea == rhs.placemark.administrativeArea
8585
&& lhs.placemark.subAdministrativeArea
86-
== lhs.placemark.subAdministrativeArea
86+
== rhs.placemark.subAdministrativeArea
8787
&& lhs.placemark.postalCode == rhs.placemark.postalCode
8888
&& lhs.placemark.isoCountryCode == rhs.placemark.isoCountryCode
8989
&& lhs.placemark.country == rhs.placemark.country
@@ -179,24 +179,24 @@ struct Placemark: Equatable {
179179
}
180180

181181
static func == (lhs: Self, rhs: Self) -> Bool {
182-
lhs.administrativeArea == lhs.administrativeArea
183-
&& lhs.areasOfInterest == lhs.areasOfInterest
182+
lhs.administrativeArea == rhs.administrativeArea
183+
&& lhs.areasOfInterest == rhs.areasOfInterest
184184
&& lhs.coordinate.latitude == rhs.coordinate.latitude
185185
&& lhs.coordinate.longitude == rhs.coordinate.longitude
186-
&& lhs.country == lhs.country
186+
&& lhs.country == rhs.country
187187
&& lhs.countryCode == rhs.countryCode
188-
&& lhs.inlandWater == lhs.inlandWater
189-
&& lhs.isoCountryCode == lhs.isoCountryCode
190-
&& lhs.locality == lhs.locality
188+
&& lhs.inlandWater == rhs.inlandWater
189+
&& lhs.isoCountryCode == rhs.isoCountryCode
190+
&& lhs.locality == rhs.locality
191191
&& lhs.name == rhs.name
192-
&& lhs.ocean == lhs.ocean
193-
&& lhs.postalCode == lhs.postalCode
192+
&& lhs.ocean == rhs.ocean
193+
&& lhs.postalCode == rhs.postalCode
194194
&& lhs.region == rhs.region
195-
&& lhs.subAdministrativeArea == lhs.subAdministrativeArea
196-
&& lhs.subLocality == lhs.subLocality
197-
&& lhs.subThoroughfare == lhs.subThoroughfare
195+
&& lhs.subAdministrativeArea == rhs.subAdministrativeArea
196+
&& lhs.subLocality == rhs.subLocality
197+
&& lhs.subThoroughfare == rhs.subThoroughfare
198198
&& lhs.subtitle == rhs.subtitle
199-
&& lhs.thoroughfare == lhs.thoroughfare
199+
&& lhs.thoroughfare == rhs.thoroughfare
200200
&& lhs.title == rhs.title
201201
}
202202
}

0 commit comments

Comments
 (0)