@@ -652,23 +652,21 @@ - (NSDictionary *)RESTDictionaryWithObjectEncoder:(PFEncoder *)objectEncoder
652652 state : (PFObjectState *)state
653653 operationSetQueue : (NSArray *)queue
654654 deletingEventuallyCount : (NSUInteger )deletingEventuallyCount {
655- @synchronized (self.lock ) {
656- NSMutableArray *cleanQueue = [queue mutableCopy ];
657- [queue enumerateObjectsUsingBlock: ^(PFOperationSet *operationSet, NSUInteger idx, BOOL *stop) {
658- // Remove operations for `password` field, to not let it persist to LDS.
659- if (operationSet[PFUserPasswordRESTKey]) {
660- operationSet = [operationSet copy ];
661- [operationSet removeObjectForKey: PFUserPasswordRESTKey];
662-
663- cleanQueue[idx] = operationSet;
664- }
665- }];
666- return [super RESTDictionaryWithObjectEncoder: objectEncoder
667- operationSetUUIDs: operationSetUUIDs
668- state: state
669- operationSetQueue: cleanQueue
670- deletingEventuallyCount: deletingEventuallyCount];
671- }
655+ NSMutableArray *cleanQueue = [queue mutableCopy ];
656+ [queue enumerateObjectsUsingBlock: ^(PFOperationSet *operationSet, NSUInteger idx, BOOL *stop) {
657+ // Remove operations for `password` field, to not let it persist to LDS.
658+ if (operationSet[PFUserPasswordRESTKey]) {
659+ operationSet = [operationSet copy ];
660+ [operationSet removeObjectForKey: PFUserPasswordRESTKey];
661+
662+ cleanQueue[idx] = operationSet;
663+ }
664+ }];
665+ return [super RESTDictionaryWithObjectEncoder: objectEncoder
666+ operationSetUUIDs: operationSetUUIDs
667+ state: state
668+ operationSetQueue: cleanQueue
669+ deletingEventuallyCount: deletingEventuallyCount];
672670}
673671
674672// /--------------------------------------
0 commit comments