From ac7180db9bda61c3c0088d4747b0206e4f9a2e4b Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Tue, 1 Oct 2024 12:00:49 +0330 Subject: [PATCH] fix: typo in a method name --- FirebaseDatabase/Sources/Persistence/FPruneForest.h | 2 +- FirebaseDatabase/Sources/Persistence/FPruneForest.m | 2 +- FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 =