Skip to content

Commit

Permalink
Enhance FirebaseDatabase function names (#13778)
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs authored Oct 3, 2024
1 parent 7c4c134 commit d4e42ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit d4e42ee

Please sign in to comment.