From 18cd62afba8c99e49b3ddd4c9aa9a3b064d1042a Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Tue, 4 Oct 2016 16:07:32 -0700 Subject: [PATCH] remove redundant control flow --- platform/darwin/src/MGLMultiPoint.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/darwin/src/MGLMultiPoint.mm b/platform/darwin/src/MGLMultiPoint.mm index 494d7d62882..2de3a27745a 100644 --- a/platform/darwin/src/MGLMultiPoint.mm +++ b/platform/darwin/src/MGLMultiPoint.mm @@ -101,7 +101,7 @@ - (void)setCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range // replacing existing coordinate(s) memcpy(_coordinates + range.location, coords, range.length * sizeof(CLLocationCoordinate2D)); } - else if (NSMaxRange(range) > _count) + else { // appending new coordinate(s) NSUInteger newCount = NSMaxRange(range);