Using id return type for AFHTTPClient -init, instead of instancetype
Minor reformatting
This commit is contained in:
parent
8cefa907d4
commit
7f0219109d
1 changed files with 2 additions and 4 deletions
|
|
@ -221,10 +221,8 @@ NSArray * AFQueryStringPairsFromKeyAndValue(NSString *key, id value) {
|
|||
return [[self alloc] initWithBaseURL:url];
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException
|
||||
reason:[NSString stringWithFormat:@"%@ Failed to call designated initializer. Invoke `initWithBaseURL:` instead.", NSStringFromClass([self class])]
|
||||
userInfo:nil];
|
||||
- (id)init {
|
||||
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:[NSString stringWithFormat:@"%@ Failed to call designated initializer. Invoke `initWithBaseURL:` instead.", NSStringFromClass([self class])] userInfo:nil];
|
||||
}
|
||||
|
||||
- (id)initWithBaseURL:(NSURL *)url {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue