Skip to content

Commit

Permalink
Merge pull request #85 from spotify/fix-conversion-warning
Browse files Browse the repository at this point in the history
Fix an intermittent warning in Xcode 7.3 beta
  • Loading branch information
tonylazarew committed Feb 3, 2016
2 parents ea589ba + ed3a7f9 commit f2b6fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SPTDataLoader/SPTDataLoaderRateLimiter.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ - (void)setRetryAfter:(NSTimeInterval)absoluteTime forURL:(NSURL *)URL
- (double)requestsPerSecondForServiceKey:(NSString *)serviceKey
{
@synchronized(self.serviceEndpointRequestsPerSecond) {
return [self.serviceEndpointRequestsPerSecond[serviceKey] doubleValue] ?: self.requestsPerSecond;
NSNumber *value = self.serviceEndpointRequestsPerSecond[serviceKey];
return value ? value.doubleValue : self.requestsPerSecond;
}
}

Expand Down

0 comments on commit f2b6fe5

Please sign in to comment.