mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Removing returning shared instance before dispatch_once is invoked
Might rather harm things and is not required anyway.
This commit is contained in:
parent
d444c177df
commit
9de1e646cc
2 changed files with 0 additions and 6 deletions
|
|
@ -123,8 +123,6 @@ static NSString *kHockeyErrorDomain = @"HockeyErrorDomain";
|
|||
static BWHockeyManager *sharedInstance = nil;
|
||||
static dispatch_once_t pred;
|
||||
|
||||
if (sharedInstance) return sharedInstance;
|
||||
|
||||
dispatch_once(&pred, ^{
|
||||
sharedInstance = [BWHockeyManager alloc];
|
||||
sharedInstance = [sharedInstance init];
|
||||
|
|
|
|||
|
|
@ -42,10 +42,6 @@
|
|||
static CNSHockeyManager *sharedInstance = nil;
|
||||
static dispatch_once_t pred;
|
||||
|
||||
if (sharedInstance) {
|
||||
return sharedInstance;
|
||||
}
|
||||
|
||||
dispatch_once(&pred, ^{
|
||||
sharedInstance = [CNSHockeyManager alloc];
|
||||
sharedInstance = [sharedInstance init];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue