Further simplify. Exception should also be thrown in only one place

This commit is contained in:
Gregory John Casamento 2019-06-19 00:10:20 -04:00
parent d826bb5a25
commit 39465cb904

View file

@ -309,15 +309,7 @@ static Class mutableSetClass;
for(i = 0; i < count; i++)
{
id anObject = objects[i];
if (anObject == nil)
{
NSLog(@"Tried to init an orderedset with a nil object");
continue;
}
else
{
[self addObject: anObject];
}
[self addObject: anObject];
}
}
return self;