Skip to content
Snippets Groups Projects
Commit cf31428e authored by George Nachman's avatar George Nachman
Browse files

Fix castFrom: to return nil on type mismatch

parent c0591552
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,7 +24,7 @@
if ([object isKindOfClass:[self class]]) {
return object;
} else {
return self;
return nil;
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment