Permalink
Browse files

Match coding style

  • Loading branch information...
1 parent cd97da6 commit 9720b09d9c394723eeb9810027f4573e8bed8bc8 @nfarina committed Jan 5, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 SMXMLDocument.m
View
@@ -114,11 +114,7 @@ - (NSArray *)childrenNamed:(NSString *)nodeName {
for (SMXMLElement *child in children)
if ([child.name isEqual:nodeName])
[array addObject:child];
-
- if([array count] > 0)
- return [[array copy] autorelease];
- else
- return nil;
+ return array.count ? [[array copy] autorelease] : nil;
}
- (SMXMLElement *)childWithAttribute:(NSString *)attributeName value:(NSString *)attributeValue {

0 comments on commit 9720b09

Please sign in to comment.