aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Storage/FIRStorage.m
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <mrschmidt@google.com>2017-11-09 14:43:53 -0800
committerGravatar Sebastian Schmidt <mrschmidt@google.com>2017-11-09 17:51:21 -0800
commit110f0edf9d25887984fcdf12becb11a4661ad637 (patch)
treeb65ffc470b32e1142ad42e016bfc18bae49722bf /Firebase/Storage/FIRStorage.m
parent86f429b2f0061a9f16c42f83841d36813892232b (diff)
Clang-formatting Storage
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];