Skip to content

Commit

Permalink
Fix signature of function callback.
Browse files Browse the repository at this point in the history
Fixes brave/brave-browser#12997
Fix Linting for Android/Linux
  • Loading branch information
Brandon-T committed Dec 14, 2020
1 parent 63486b1 commit 40ac713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ios/browser/api/bookmarks/brave_bookmarks_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ OBJC_EXPORT
@property(nonatomic, readonly) NSUInteger childCount;

- (nullable IOSBookmarkNode*)childAtIndex:(NSUInteger)index;
- (NSArray<BookmarkFolder*>*)nestedChildFoldersFiltered:(BOOL(^)(BookmarkFolder*))included
NS_SWIFT_NAME(nestedChildFolders(where:));
- (NSArray<BookmarkFolder*>*)nestedChildFoldersFiltered:
(BOOL(^)(BookmarkFolder*))included
NS_SWIFT_NAME(nestedChildFolders(where:));

- (void)setTitle:(NSString*)title;
- (bool)getMetaInfo:(NSString*)key value:(NSString* _Nonnull* _Nullable)value;
Expand Down
2 changes: 1 addition & 1 deletion ios/browser/api/bookmarks/brave_bookmarks_api.mm
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ - (IOSBookmarkNode*)parent {

- (NSArray<BookmarkFolder*>*)nestedChildFolders {
// Returns a list of ALL nested folders
return [self nestedChildFoldersFiltered:^{ return true; }];
return [self nestedChildFoldersFiltered:^BOOL(BookmarkFolder*){ return true; }];
}

- (NSUInteger)childCount {
Expand Down

0 comments on commit 40ac713

Please sign in to comment.