Skip to content

Commit b3e09ce

Browse files
zkrigethomasvl
authored andcommitted
Update GTLRService.m
Fix static analysis warning for `GTLRService.m:2479:30: Converting a pointer value of type 'NSNumber * _Nullable' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue`
1 parent 955c065 commit b3e09ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Objects/GTLRService.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2476,7 +2476,7 @@ - (instancetype)initWithService:(GTLRService *)service
24762476
_retryEnabled = ((params.retryEnabled != nil) ? params.retryEnabled.boolValue : service.retryEnabled);
24772477
_maxRetryInterval = (params.maxRetryInterval ?
24782478
params.maxRetryInterval.doubleValue : service.maxRetryInterval);
2479-
_shouldFetchNextPages = (params.shouldFetchNextPages ?
2479+
_shouldFetchNextPages = ((params.shouldFetchNextPages != nil)?
24802480
params.shouldFetchNextPages.boolValue : service.shouldFetchNextPages);
24812481

24822482
GTLRServiceUploadProgressBlock uploadProgressBlock =

0 commit comments

Comments
 (0)