Fix 'Converting a pointer value of type 'NSNumber *' to a primitive boolean value' warning
This commit is contained in:
parent
b11baf61d1
commit
79d413ddd8
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue