From 2ed99ae914206ec7ba7f4a7778c69d6c041a411c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Aug 2014 20:10:00 +0200 Subject: Replace a few other instances with objectOrNilAtIndex: --- Source/SPConnectionController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPConnectionController.m') diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 12624178..a91f6929 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -741,7 +741,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, { NSArray *nodes = [self selectedFavoriteNodes]; - return ([nodes count]) ? (SPTreeNode *)[nodes objectAtIndex:0] : nil; + return (SPTreeNode *)[nodes objectOrNilAtIndex:0]; } /** -- cgit v1.2.3