Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
Change-Id: I603bd51742bed501bfc2373211caee7702122b45
  • Loading branch information
Edouard Siegel committed Jun 27, 2016
1 parent a1270ac commit 57e0f40
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ADClusterMapView/ADClusterMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,12 @@ - (NSInteger)_numberOfClusters {


- (BOOL)_annotation:(ADClusterAnnotation *)annotation belongsToClusters:(NSArray *)clusters {
if (annotation.cluster) {
for (ADMapCluster * cluster in clusters) {
if ([cluster isAncestorOf:annotation.cluster] || [cluster isEqual:annotation.cluster]) {
return YES;
}
if (!annotation.cluster) {
return NO;
}
for (ADMapCluster * cluster in clusters) {
if ([cluster isAncestorOf:annotation.cluster] || [cluster isEqual:annotation.cluster]) {
return YES;
}
}
return NO;
Expand Down

0 comments on commit 57e0f40

Please sign in to comment.