Skip to content

Commit b2de614

Browse files
Move last completionHandler block outside if condition
1 parent aebbcf5 commit b2de614

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

FirebaseRemoteConfig/Sources/FIRRemoteConfig.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,11 @@ - (void)setCustomSignals:(nullable NSDictionary<NSString *, NSObject *> *)custom
323323
// Update only if there are changes.
324324
if (![newCustomSignals isEqualToDictionary:self->_settings.customSignals]) {
325325
self->_settings.customSignals = newCustomSignals;
326-
if (completionHandler) {
327-
dispatch_async(dispatch_get_main_queue(), ^{
328-
completionHandler(nil);
329-
});
330-
}
326+
}
327+
if (completionHandler) {
328+
dispatch_async(dispatch_get_main_queue(), ^{
329+
completionHandler(nil);
330+
});
331331
}
332332
};
333333
dispatch_async(_queue, setCustomSignalsBlock);

0 commit comments

Comments
 (0)