Skip to content

Commit 77e8937

Browse files
Fixing Analysis issue in Storage (#3191)
Fixes: in firebase-ios-sdk/Firebase/Storage/FIRStorageListTask.m:73 Logic error: Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue
1 parent fa33421 commit 77e8937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firebase/Storage/FIRStorageListTask.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ - (void)enqueue {
7070
// listAll() doesn't set a pageSize as this allows Firebase Storage to determine how many items
7171
// to return per page. This removes the need to backfill results if Firebase Storage filters
7272
// objects that are considered invalid (such as items with two consecutive slashes).
73-
if (strongSelf->_pageSize) {
73+
if (strongSelf->_pageSize != nil) {
7474
queryParams[@"maxResults"] = [strongSelf->_pageSize stringValue];
7575
}
7676

@@ -124,4 +124,4 @@ - (void)enqueue {
124124
}];
125125
}
126126

127-
@end
127+
@end

0 commit comments

Comments
 (0)