Fix fred's suggestions. Put guard and make more general method the one which is called.

This commit is contained in:
Gregory John Casamento 2020-05-12 14:02:50 -04:00
parent be8980dfb4
commit a0f50deb64

View file

@ -436,16 +436,7 @@ static NSDictionary *makeReference(unsigned ref)
{
NSData *d = nil;
if (requiresSecureCoding == YES)
{
if (error != NULL)
{
*error = [NSError errorWithDomain: @"NSKeyedArchiver"
code: 0
userInfo: nil];
}
}
else
if (requiresSecureCoding == NO)
{
NSMutableData *m = nil;
NSKeyedArchiver *a = nil;