Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FirebaseDatabase/Sources/Persistence/FPruneForest.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
- (FPruneForest *)keepAll:(NSSet *)children atPath:(FPath *)path;
- (FPruneForest *)pruneAll:(NSSet *)children atPath:(FPath *)path;

- (void)enumarateKeptNodesUsingBlock:(void (^)(FPath *path))block;
- (void)enumerateKeptNodesUsingBlock:(void (^)(FPath *path))block;

@end
2 changes: 1 addition & 1 deletion FirebaseDatabase/Sources/Persistence/FPruneForest.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ - (FPruneForest *)setPruneValue:(FImmutableTree *)pruneValue
initWithForest:[self.pruneForest setTree:newSubtree atPath:path]];
}

- (void)enumarateKeptNodesUsingBlock:(void (^)(FPath *))block {
- (void)enumerateKeptNodesUsingBlock:(void (^)(FPath *))block {
[self.pruneForest forEach:^(FPath *path, id value) {
if (value != nil && ![value boolValue]) {
block(path);
Expand Down
2 changes: 1 addition & 1 deletion FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ - (void)pruneCache:(FPruneForest *)pruneForest atPath:(FPath *)prunePath {
FPath *relativePath = [FPath relativePathFrom:prunePath to:absolutePath];
if ([pruneForest shouldPruneUnkeptDescendantsAtPath:relativePath]) {
__block FCompoundWrite *newCache = [FCompoundWrite emptyWrite];
[[pruneForest childAtPath:relativePath] enumarateKeptNodesUsingBlock:^(FPath *keepPath) {
[[pruneForest childAtPath:relativePath] enumerateKeptNodesUsingBlock:^(FPath *keepPath) {
newCache = [newCache addWrite:[node getChild:keepPath] atPath:keepPath];
}];
self.serverCache =
Expand Down
Loading