Minor formatting
This commit is contained in:
parent
25620fe839
commit
3ee1fefeac
1 changed files with 2 additions and 1 deletions
|
|
@ -56,9 +56,10 @@ NSSet * AFContentTypesFromHTTPHeader(NSString *string) {
|
|||
|
||||
static void AFSwizzleClassMethodWithImplementation(Class klass, SEL selector, IMP implementation) {
|
||||
Method originalMethod = class_getClassMethod(klass, selector);
|
||||
if (method_getImplementation(originalMethod) != implementation)
|
||||
if (method_getImplementation(originalMethod) != implementation) {
|
||||
class_replaceMethod(objc_getMetaClass([NSStringFromClass(klass) UTF8String]), selector, implementation, method_getTypeEncoding(originalMethod));
|
||||
}
|
||||
}
|
||||
|
||||
static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
||||
NSMutableString *string = [NSMutableString string];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue