mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-01-12 22:49:34 +08:00
Use NSInteger
This commit is contained in:
@@ -117,7 +117,7 @@ NSString * const PINURLErrorDomain = @"PINURLErrorDomain";
|
||||
dispatch_queue_t delegateQueue = self.delegateQueues[@(task.taskIdentifier)];
|
||||
[self unlock];
|
||||
if (!error && [task.response isKindOfClass:[NSHTTPURLResponse class]]) {
|
||||
int statusCode = [(NSHTTPURLResponse *)task.response statusCode];
|
||||
NSInteger statusCode = [(NSHTTPURLResponse *)task.response statusCode];
|
||||
if (statusCode >= 400) {
|
||||
error = [NSError errorWithDomain:PINURLErrorDomain
|
||||
code:statusCode
|
||||
|
||||
Reference in New Issue
Block a user