Skip to content

Commit

Permalink
Update GTLRService.m (#191)
Browse files Browse the repository at this point in the history
Fix static analysis warning
`GTLRService.m:2477:26: Converting a pointer value of type 'NSNumber * _Nullable' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue`
  • Loading branch information
zkrige authored and thomasvl committed Dec 4, 2017
1 parent 4359217 commit 56e8568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Objects/GTLRService.m
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,7 @@ - (instancetype)initWithService:(GTLRService *)service
_objectClassResolver = params.objectClassResolver ?: service.objectClassResolver;

_retryEnabled = ((params.retryEnabled != nil) ? params.retryEnabled.boolValue : service.retryEnabled);
_maxRetryInterval = (params.maxRetryInterval ?
_maxRetryInterval = ((params.maxRetryInterval != nil) ?
params.maxRetryInterval.doubleValue : service.maxRetryInterval);
_shouldFetchNextPages = ((params.shouldFetchNextPages != nil)?
params.shouldFetchNextPages.boolValue : service.shouldFetchNextPages);
Expand Down

0 comments on commit 56e8568

Please sign in to comment.