Fix potential call of null block

This commit is contained in:
Richard Frith-Macdonald 2022-12-29 09:01:33 +00:00
parent 67d27cd453
commit 3477b3f1d9

View file

@ -22,6 +22,7 @@
Boston, MA 02110 USA.
*/
#import <Foundation/Foundation.h>
#import "AppKit/NSFontAssetRequest.h"
@implementation NSFontAssetRequest
@ -42,10 +43,13 @@
return nil; // [NSProgress progressWithTotalUnitCount: 0.0];
}
- (void)downloadFontAssetsWithCompletionHandler: (GSFontAssetCompletionHandler)completionHandler
- (void) downloadFontAssetsWithCompletionHandler:
(GSFontAssetCompletionHandler)completionHandler
{
NSError *error = nil;
CALL_BLOCK(completionHandler, error);
NSAssert(completionHandler != nil, NSInvalidArgumentException);
CALL_NON_NULL_BLOCK(completionHandler, error);
}
@end