Remove useless infra assert

Summary: Some product callsite just pass in nil object to this API thus keep causing the assertion. It's a bit too noisy and not much value here since we by default would still return `NSNotFound` here.

Reviewed By: stavash

Differential Revision: D24233480

fbshipit-source-id: 38b2eed3a9286bdd0a7eb0467894a13bbdca007a
This commit is contained in:
Zhisheng Huang 2020-10-11 00:06:15 -07:00 committed by Facebook GitHub Bot
parent 019b22da07
commit bee04ca961

View file

@ -95,7 +95,9 @@
}
- (NSInteger)sectionForObject:(id)object {
IGParameterAssert(object != nil);
if (object == nil) {
return NSNotFound;
}
id sectionController = [self sectionControllerForObject:object];
if (sectionController == nil) {