Skip to content

Commit 7cae0f4

Browse files
committed
Simplified scope description code
1 parent 55efc8c commit 7cae0f4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

MapboxGeocoder/MBPlacemarkScope.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,34 @@ extension PlacemarkScope: CustomStringConvertible {
3737

3838
public var description: String {
3939
var descriptions: [String] = []
40-
if contains(PlacemarkScope.Country) {
40+
if contains(.Country) {
4141
descriptions.append("country")
4242
}
43-
if contains(PlacemarkScope.Region) {
43+
if contains(.Region) {
4444
descriptions.append("region")
4545
}
46-
if contains(PlacemarkScope.District) {
46+
if contains(.District) {
4747
descriptions.append("district")
4848
}
49-
if contains(PlacemarkScope.PostalCode) {
49+
if contains(.PostalCode) {
5050
descriptions.append("postcode")
5151
}
52-
if contains(PlacemarkScope.Place) {
52+
if contains(.Place) {
5353
descriptions.append("place")
5454
}
55-
if contains(PlacemarkScope.Locality) {
55+
if contains(.Locality) {
5656
descriptions.append("locality")
5757
}
58-
if contains(PlacemarkScope.Neighborhood) {
58+
if contains(.Neighborhood) {
5959
descriptions.append("neighborhood")
6060
}
61-
if contains(PlacemarkScope.Address) {
61+
if contains(.Address) {
6262
descriptions.append("address")
6363
}
64-
if contains(PlacemarkScope.PointOfInterest) {
64+
if contains(.PointOfInterest) {
6565
descriptions.append("poi")
6666
}
67-
if contains(PlacemarkScope.Landmark) {
67+
if contains(.Landmark) {
6868
descriptions.append("poi.landmark")
6969
}
7070
return descriptions.joinWithSeparator(",")

0 commit comments

Comments
 (0)