diff options
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 |