Skip to content

Commit

Permalink
[param-not-null] Adding a test
Browse files Browse the repository at this point in the history
Summary: This shows a test of the capabilities of the checker: it's able to take into account the check for null that happens outside the block.

Reviewed By: geralt-encore

Differential Revision: D69590721

fbshipit-source-id: cfa0022fa2f75c4c3f1867397605d886ee98c9c1
  • Loading branch information
dulmarod authored and facebook-github-bot committed Feb 13, 2025
1 parent 6d2bfce commit fa4fa77
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ + (void)block_call_safe_on_queue_macro_ok:(MyBlock)completion {
BLOCK_CALL_SAFE_ON_QUEUE(dispatch_get_main_queue(), completion, nil);
}

- (void)startWithCompletionHandlerOk:(MyBlock)completion {
if (completion != nil) {
dispatch_async(dispatch_get_main_queue(), ^{
completion();
});
}
}

@end

#ifdef __clang__
Expand Down

0 comments on commit fa4fa77

Please sign in to comment.