Skip to content

Commit

Permalink
Update block usage requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaunchaMan committed Jun 8, 2018
1 parent 41782ab commit 684dfe0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions AFNetworking/AFURLSessionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ static dispatch_queue_t url_session_manager_creation_queue() {
return af_url_session_manager_creation_queue;
}

static void url_session_manager_create_task_safely(dispatch_block_t block) {

if(block != nil) {
static void url_session_manager_create_task_safely(dispatch_block_t _Nonnull block) {
if (block != NULL) {
if (NSFoundationVersionNumber < NSFoundationVersionNumber_With_Fixed_5871104061079552_bug) {
// Fix of bug
// Open Radar:http://openradar.appspot.com/radar?id=5871104061079552 (status: Fixed in iOS8)
Expand All @@ -49,8 +48,6 @@ static void url_session_manager_create_task_safely(dispatch_block_t block) {
} else {
block();
}
} else {
return;
}
}

Expand Down

0 comments on commit 684dfe0

Please sign in to comment.