IGListKit/Source
Tim Oliver a511891376 Refactored check in IGListCollectionViewLayout for more reliable coverage
Summary:
The `[context invalidateDataSourceCounts] && _minimumInvalidatedSection == NSNotFound` condition was never getting triggered in any of our tests.

I tried to simulate this condition in my testing, but it doesn't seem possible to have `_minimumInvalidatedSection` set to `NSNotFound` when execution reaches this point. This is because the only public pathway I could see to `[context invalidateLayoutWithContext:]` was via the regular `invalidateLayout` method which always sets `_minimumInvalidatedSection` to 0 before continuing.

To solve this, since the resulting logic ends up being the same in the check above, I simply collapsed this check into the one above it.

Reviewed By: fabiomassimo

Differential Revision: D50000788

fbshipit-source-id: da0bf0cb16c98de95f802dfd35bbdf0e935e615f
2023-10-11 22:30:36 -07:00
..
IGListDiffKit Fix IGWarnAssert macro to remove unneeded condition parameter 2023-09-26 08:22:26 -07:00
IGListKit Refactored check in IGListCollectionViewLayout for more reliable coverage 2023-10-11 22:30:36 -07:00
IGListSwiftKit Standarize the copyright notice in all source files 2023-04-06 02:44:16 -07:00
Info.plist Update deployment targets to silence Xcode 14 warnings (#1573) 2023-05-01 22:48:23 -07:00