Fix suggestions made by Fred

This commit is contained in:
Gregory John Casamento 2019-08-05 10:20:40 -04:00
parent 93b4fed381
commit a90a55a3ea

View file

@ -113,15 +113,15 @@ static BOOL initialized = NO;
id comparedKey1 = [object1 valueForKeyPath: _key];
id comparedKey2 = [object2 valueForKeyPath: _key];
if(_comparator != NULL)
{
result = CALL_BLOCK(((NSComparator)_comparator), comparedKey1, comparedKey2);
}
else
if (_comparator == NULL)
{
result = (NSComparisonResult) [comparedKey1 performSelector: _selector
withObject: comparedKey2];
}
else
{
result = CALL_BLOCK(((NSComparator)_comparator), comparedKey1, comparedKey2);
}
if (_ascending == NO)
{
@ -146,7 +146,7 @@ static BOOL initialized = NO;
return RETAIN(self);
}
if(_comparator == NULL)
if (_comparator == NULL)
{
copy = [[NSSortDescriptor allocWithZone: zone]
initWithKey: _key ascending: _ascending selector: _selector];