aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-08-03 20:10:00 +0200
committerMax <post@wickenrode.com>2014-08-03 20:10:00 +0200
commit2ed99ae914206ec7ba7f4a7778c69d6c041a411c (patch)
tree244a21f227ea19991b100629cb01b3372e60bccf /Source/SPConnectionController.m
parent2570a91dd1e1d7b88b908db33494baeaa5001e74 (diff)
downloadsequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.gz
sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.bz2
sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.zip
Replace a few other instances with objectOrNilAtIndex:
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
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];
}
/**