@@ -158,14 +158,14 @@ - (instancetype)initWithProjectID:(NSString *)projectID
158
158
}
159
159
160
160
- (FIRFirestoreSettings *)settings {
161
- @synchronized (self) {
161
+ @synchronized (self) {
162
162
// Disallow mutation of our internal settings
163
163
return [_settings copy ];
164
164
}
165
165
}
166
166
167
167
- (void )setSettings : (FIRFirestoreSettings *)settings {
168
- @synchronized (self) {
168
+ @synchronized (self) {
169
169
// As a special exception, don't throw if the same settings are passed repeatedly. This should
170
170
// make it more friendly to create a Firestore instance.
171
171
if (_client && ![_settings isEqual: settings]) {
@@ -187,17 +187,17 @@ - (FSTFirestoreClient *)client {
187
187
}
188
188
189
189
- (void )ensureClientConfigured {
190
- @synchronized (self) {
190
+ @synchronized (self) {
191
191
if (!_client) {
192
192
// These values are validated elsewhere; this is just double-checking:
193
193
FSTAssert (_settings.host , @" FirestoreSettings.host cannot be nil." );
194
194
FSTAssert (_settings.dispatchQueue , @" FirestoreSettings.dispatchQueue cannot be nil." );
195
195
196
196
FSTDatabaseInfo *databaseInfo =
197
- [FSTDatabaseInfo databaseInfoWithDatabaseID: _databaseID
198
- persistenceKey: _persistenceKey
199
- host: _settings.host
200
- sslEnabled: _settings.sslEnabled];
197
+ [FSTDatabaseInfo databaseInfoWithDatabaseID: _databaseID
198
+ persistenceKey: _persistenceKey
199
+ host: _settings.host
200
+ sslEnabled: _settings.sslEnabled];
201
201
202
202
FSTDispatchQueue *userDispatchQueue = [FSTDispatchQueue queueWith: _settings.dispatchQueue];
203
203
@@ -280,7 +280,7 @@ - (void)runTransactionWithBlock:(id _Nullable (^)(FIRTransaction *, NSError **er
280
280
281
281
- (void )shutdownWithCompletion : (nullable void (^)(NSError *_Nullable error))completion {
282
282
FSTFirestoreClient *client;
283
- @synchronized (self) {
283
+ @synchronized (self) {
284
284
client = _client;
285
285
_client = nil ;
286
286
}
0 commit comments