Using class property

This commit is contained in:
Michael Starke
2018-08-29 17:53:52 +02:00
parent 9b7754b5fb
commit 2acff0702d

View File

@@ -185,7 +185,7 @@
return; return;
} }
NSURLSessionTask *task = [[NSURLSession sharedSession] dataTaskWithURL:favIconURL completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { NSURLSessionTask *task = [NSURLSession.sharedSession dataTaskWithURL:favIconURL completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
if(error) { if(error) {
handler(nil); handler(nil);
} }