mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00: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
@ -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…
x
Reference in New Issue
Block a user