chore: split conditionals

Split block of conditionals in separate lines to improve readability
This commit is contained in:
Tapajyoti Bose
2021-02-07 08:44:05 +05:30
committed by GitHub
parent 0b66f6732f
commit f7819edae0

View File

@ -57,7 +57,16 @@ class Month {
} }
isGreater (startDate, endDate) { isGreater (startDate, endDate) {
if (startDate.year > endDate.year) { return true } else if (startDate.year < endDate.year) { return false } else if (startDate.month > endDate.month) { return true } else if (startDate.month < endDate.month) { return false } else return true if (startDate.year > endDate.year) {
return true
} else if (startDate.year < endDate.year) {
return false
} else if (startDate.month > endDate.month) {
return true
} else if (startDate.month < endDate.month) {
return false
}
return true
} }
getDayDiff (startDate, endDate) { getDayDiff (startDate, endDate) {