diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-07 02:32:05 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-07 02:32:05 +0000 |
commit | 55bf19f025ab67562b151a40e2440c5c76b00ee5 (patch) | |
tree | 720b0775b3f245bec246eca461b43cf3ccdc254b /Source/SPUserMO.m | |
parent | 021ed107a07064cb5e0f1988b778fa0cfe4ffa37 (diff) | |
download | sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.gz sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.bz2 sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.zip |
Tidy up.
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r-- | Source/SPUserMO.m | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m index 05d699ae..8b6af9b2 100644 --- a/Source/SPUserMO.m +++ b/Source/SPUserMO.m @@ -32,11 +32,7 @@ - (NSString *)displayName { - if ([self valueForKey:@"parent"] == nil) { - return self.user; - } else { - return self.host; - } + return ([self valueForKey:@"parent"] == nil) ? self.user : self.host; } - (void)setDisplayName:(NSString *)value @@ -66,7 +62,5 @@ [changedObjects release]; } -@end - - +@end |