Skip to content

Commit bd427c5

Browse files
author
Zach Drayer
committed
Don't assign an object to a temp variable thats only used once, just use it once
1 parent a49d5fe commit bd427c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TFHppleElement.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ - (NSArray *) children
7676
{
7777
NSMutableArray *children = [NSMutableArray array];
7878
for (NSDictionary *child in [node objectForKey:TFHppleNodeChildrenKey]) {
79-
TFHppleElement *element = [TFHppleElement hppleElementWithNode:child];
80-
[children addObject:element];
79+
[children addObject:[TFHppleElement hppleElementWithNode:child]];
8180
}
8281
return children;
8382
}

0 commit comments

Comments
 (0)