Permalink
Browse files

use newObject variable for group by.

  • Loading branch information...
1 parent e1b61df commit fd9c0d5595814229ea3d0a7f3e7f3a926cd963ef @jasonmw jasonmw committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SOCQ/SOCQCore.m
View
@@ -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];
}
}
}

0 comments on commit fd9c0d5

Please sign in to comment.