Skip to content

Commit 05bf6ef

Browse files
authored
Merge pull request #115 from mapbox/1ec5-batch-limit-inverse-114
Fix batch query count assertion
2 parents b55d3f1 + 1b67512 commit 05bf6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MapboxGeocoder/MBGeocoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ open class Geocoder: NSObject {
267267
let mode: String
268268
if options.queries.count > 1 {
269269
mode = "mapbox.places-permanent"
270-
assert(options.queries.count > 50, "Too many queries in a single request.")
270+
assert(options.queries.count <= 50, "Too many queries in a single request.")
271271
} else {
272272
mode = "mapbox.places"
273273
}

0 commit comments

Comments
 (0)