Bladeren bron

Enhance FirebaseDatabase function names (#13778)

Seyed Mojtaba Hosseini Zeidabadi 1 jaar geleden
bovenliggende
commit
d4e42eef8c

+ 1 - 1
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

+ 1 - 1
FirebaseDatabase/Sources/Persistence/FPruneForest.m

@@ -183,7 +183,7 @@ static BOOL (^kFKeepPredicate)(id) = ^BOOL(NSNumber *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);

+ 1 - 1
FirebaseDatabase/Tests/Helpers/FMockStorageEngine.m

@@ -125,7 +125,7 @@
       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 =