Skip to content

Commit c7c0149

Browse files
authored
Update to clang-format@13 (#8739)
1 parent da2ec8a commit c7c0149

File tree

23 files changed

+722
-711
lines changed

23 files changed

+722
-711
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: check
33
on:
44
pull_request:
55
paths-ignore:
6-
- 'Firestore/**'
6+
- 'Firestore/**'
77
push:
88
branches: master
99

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ To develop Firebase software, **install**:
130130
To install [clang-format] and [mint] using [Homebrew]:
131131

132132
```console
133-
brew install clang-format@12
133+
brew install clang-format@13
134134
brew install mint
135135
```
136136

Crashlytics/Shared/FIRCLSNetworking/FIRCLSFABNetworkClient.m

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,20 @@ - (void)startDataTaskWithRequest:(NSURLRequest *)request
134134
}
135135

136136
[self
137-
runAfterRetryValueFromResponse:response
138-
attempts:tries
139-
block:^{
140-
[self
141-
startDataTaskWithRequest:request
142-
retryLimit:
143-
retryLimit
144-
tries:(tries +
137+
runAfterRetryValueFromResponse:response
138+
attempts:tries
139+
block:^{
140+
[self
141+
startDataTaskWithRequest:
142+
request
143+
retryLimit:
144+
retryLimit
145+
tries:
146+
(tries +
145147
1)
146-
completionHandler:
147-
completionHandler];
148-
}];
148+
completionHandler:
149+
completionHandler];
150+
}];
149151
}];
150152
}];
151153

@@ -209,20 +211,20 @@ - (void)startDownloadTaskWithRequest:(NSURLRequest *)request
209211
}
210212

211213
[self
212-
runAfterRetryValueFromResponse:response
213-
attempts:tries
214-
block:^{
215-
[self
216-
startDownloadTaskWithRequest:
217-
request
218-
retryLimit:
219-
retryLimit
220-
tries:
221-
(tries +
222-
1)
223-
completionHandler:
224-
completionHandler];
225-
}];
214+
runAfterRetryValueFromResponse:response
215+
attempts:tries
216+
block:^{
217+
[self
218+
startDownloadTaskWithRequest:
219+
request
220+
retryLimit:
221+
retryLimit
222+
tries:
223+
(tries +
224+
1)
225+
completionHandler:
226+
completionHandler];
227+
}];
226228
}];
227229
}];
228230

FirebaseAppDistribution/Sources/FIRFADApiService.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ + (void)generateAuthTokenWithCompletion:(FIRFADGenerateAuthTokenCompletion)compl
4747
return;
4848
}
4949

50-
[installations
51-
installationIDWithCompletion:^(NSString *__nullable identifier, NSError *__nullable error) {
52-
if ([self handleError:&error
53-
description:@"Failed to fetch Firebase Installation ID."
54-
code:FIRFADApiInstallationIdentifierError]) {
55-
FIRFADErrorLog(@"Error getting installation id. Error: %@", [error localizedDescription]);
50+
[installations installationIDWithCompletion:^(NSString *__nullable identifier,
51+
NSError *__nullable error) {
52+
if ([self handleError:&error
53+
description:@"Failed to fetch Firebase Installation ID."
54+
code:FIRFADApiInstallationIdentifierError]) {
55+
FIRFADErrorLog(@"Error getting installation id. Error: %@", [error localizedDescription]);
5656

57-
completion(nil, nil, error);
57+
completion(nil, nil, error);
5858

59-
return;
60-
}
59+
return;
60+
}
6161

62-
completion(identifier, authTokenResult, nil);
63-
}];
62+
completion(identifier, authTokenResult, nil);
63+
}];
6464
}];
6565
}
6666

0 commit comments

Comments
 (0)