Skip to content

Commit

Permalink
Move last completionHandler block outside if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharkhandelwal8 committed Nov 8, 2024
1 parent aebbcf5 commit b2de614
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FirebaseRemoteConfig/Sources/FIRRemoteConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ - (void)setCustomSignals:(nullable NSDictionary<NSString *, NSObject *> *)custom
// Update only if there are changes.
if (![newCustomSignals isEqualToDictionary:self->_settings.customSignals]) {
self->_settings.customSignals = newCustomSignals;
if (completionHandler) {
dispatch_async(dispatch_get_main_queue(), ^{
completionHandler(nil);
});
}
}
if (completionHandler) {
dispatch_async(dispatch_get_main_queue(), ^{
completionHandler(nil);
});
}
};
dispatch_async(_queue, setCustomSignalsBlock);
Expand Down

0 comments on commit b2de614

Please sign in to comment.