Using id return type for AFHTTPClient -init, instead of instancetype

Minor reformatting
This commit is contained in:
Mattt Thompson 2013-05-22 08:57:11 -07:00
parent 8cefa907d4
commit 7f0219109d

View file

@ -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 {