diff --git a/FirebaseDatabase/Sources/Persistence/FPruneForest.h b/FirebaseDatabase/Sources/Persistence/FPruneForest.h index 9e77217a5f6..91c4cc3ea6c 100644 --- a/FirebaseDatabase/Sources/Persistence/FPruneForest.h +++ b/FirebaseDatabase/Sources/Persistence/FPruneForest.h @@ -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 diff --git a/FirebaseDatabase/Sources/Persistence/FPruneForest.m b/FirebaseDatabase/Sources/Persistence/FPruneForest.m index b777ba9b88c..7d5cdc29b4a 100644 --- a/FirebaseDatabase/Sources/Persistence/FPruneForest.m +++ b/FirebaseDatabase/Sources/Persistence/FPruneForest.m @@ -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); diff --git a/FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m b/FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m index e88c3a85d1c..dafc1a9bc30 100644 --- a/FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m +++ b/FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m @@ -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 =