aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Storage/FIRStorage.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firebase/Storage/FIRStorage.m')
-rw-r--r--Firebase/Storage/FIRStorage.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Firebase/Storage/FIRStorage.m b/Firebase/Storage/FIRStorage.m
index dd11391..21657bc 100644
--- a/Firebase/Storage/FIRStorage.m
+++ b/Firebase/Storage/FIRStorage.m
@@ -38,8 +38,7 @@ static GTMSessionFetcherRetryBlock _retryWhenOffline;
+ (void)initialize {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
- _retryWhenOffline = ^(BOOL suggestedWillRetry,
- NSError * GTM_NULLABLE_TYPE error,
+ _retryWhenOffline = ^(BOOL suggestedWillRetry, NSError *GTM_NULLABLE_TYPE error,
GTMSessionFetcherRetryResponse response) {
bool shouldRetry = suggestedWillRetry;
// GTMSessionFetcher does not consider being offline a retryable error, but we do, so we
@@ -84,11 +83,12 @@ static GTMSessionFetcherRetryBlock _retryWhenOffline;
}
+ (instancetype)storageForApp:(FIRApp *)app {
- NSString* url;
+ NSString *url;
if (app.options.storageBucket) {
- url = [app.options.storageBucket isEqualToString:@""] ? @""
- : [@"gs://" stringByAppendingString:app.options.storageBucket];
+ url = [app.options.storageBucket isEqualToString:@""]
+ ? @""
+ : [@"gs://" stringByAppendingString:app.options.storageBucket];
}
return [self storageForApp:app URL:url];