aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserMO.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-07 02:32:05 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-07 02:32:05 +0000
commit55bf19f025ab67562b151a40e2440c5c76b00ee5 (patch)
tree720b0775b3f245bec246eca461b43cf3ccdc254b /Source/SPUserMO.m
parent021ed107a07064cb5e0f1988b778fa0cfe4ffa37 (diff)
downloadsequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.gz
sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.bz2
sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.zip
Tidy up.
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r--Source/SPUserMO.m10
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