Skip to content

Commit

Permalink
Remove reference check for timer in GIDTimedLoader.m
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmathias committed Aug 16, 2023
1 parent f675864 commit 4d8aa26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions GoogleSignIn/Sources/GIDTimedLoader/GIDTimedLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ - (void)stopTimingWithCompletion:(void (^)(void))completion {
return;
}

if (self.loadingTimer) {
[self.loadingTimer invalidate];
self.loadingTimer = nil;
}
[self.loadingTimer invalidate];
self.loadingTimer = nil;

dispatch_time_t deadline = [self remainingDurationToAnimate];
dispatch_after(deadline, dispatch_get_main_queue(), ^{
Expand Down

0 comments on commit 4d8aa26

Please sign in to comment.