Skip to content

Commit

Permalink
use newObject variable for group by.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmw committed Apr 4, 2012
1 parent e1b61df commit fd9c0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SOCQ/SOCQCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ + (void)groupBy:(id(^)(id obj))groupBlock onCollection:(id)sourceCollection with
else if ([sourceCollection isKindOfClass:[NSMutableSet class]])
newObject = [NSMutableSet setWithObject:element];

[targetCollection setObject:[NSMutableSet setWithObject:element] forKey:groupKey];
[targetCollection setObject:newObject forKey:groupKey];
}
}
}
Expand Down

0 comments on commit fd9c0d5

Please sign in to comment.