mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-17 12:14:54 +08:00
Assert flow layout inspector always initializes with a flow layout
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#import "ASCollectionViewFlowLayoutInspector.h"
|
||||
|
||||
#import "ASCollectionView.h"
|
||||
#import "ASAssert.h"
|
||||
|
||||
@implementation ASCollectionViewFlowLayoutInspector {
|
||||
BOOL _delegateImplementsReferenceSizeForHeader;
|
||||
@@ -24,7 +25,7 @@
|
||||
self = [super init];
|
||||
|
||||
if (flowLayout == nil) {
|
||||
return nil;
|
||||
ASDisplayNodeAssert(NO, @"Should never create a layout inspector without a layout");
|
||||
}
|
||||
|
||||
if (self != nil) {
|
||||
|
||||
Reference in New Issue
Block a user