Skip to content

Commit 9720b09

Browse files
committed
Match coding style
1 parent cd97da6 commit 9720b09

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

SMXMLDocument.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ - (NSArray *)childrenNamed:(NSString *)nodeName {
114114
for (SMXMLElement *child in children)
115115
if ([child.name isEqual:nodeName])
116116
[array addObject:child];
117-
118-
if([array count] > 0)
119-
return [[array copy] autorelease];
120-
else
121-
return nil;
117+
return array.count ? [[array copy] autorelease] : nil;
122118
}
123119

124120
- (SMXMLElement *)childWithAttribute:(NSString *)attributeName value:(NSString *)attributeValue {

0 commit comments

Comments
 (0)