Add return type to the shouldNotAnimateBlock

This commit is contained in:
Michael Schneider
2016-07-07 07:00:07 -07:00
parent c62a4d3e79
commit 94ca363936

View File

@@ -1180,8 +1180,8 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
static dispatch_once_t onceToken;
static BOOL (^shouldNotAnimateBlock)(ASDisplayNode *);
dispatch_once(&onceToken, ^{
shouldNotAnimateBlock = ^(ASDisplayNode * _Nonnull node) {
return node.shouldAnimateSizeChanges == NO;
shouldNotAnimateBlock = ^BOOL(ASDisplayNode * _Nonnull node) {
return (node.shouldAnimateSizeChanges == NO);
};
});
if (ASDisplayNodeFindFirstNode(node, shouldNotAnimateBlock) != nil) {