Fix 'Converting a pointer value of type 'NSNumber *' to a primitive boolean value' warning

This commit is contained in:
Marc Etcheverry 2019-12-30 14:14:09 -08:00
parent b11baf61d1
commit 79d413ddd8
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@
if (self.calendar.placeholderType == FSCalendarPlaceholderTypeFillSixRows) return 6;
NSNumber *rowCount = self.rowCounts[month];
if (!rowCount) {
if (rowCount == nil) {
NSDate *firstDayOfMonth = [self.gregorian fs_firstDayOfMonth:month];
NSInteger weekdayOfFirstDay = [self.gregorian component:NSCalendarUnitWeekday fromDate:firstDayOfMonth];
NSInteger numberOfDaysInMonth = [self.gregorian fs_numberOfDaysInMonth:month];