You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #2519 and #2612 there will be many instances of "If unit is "year", or unit is "month", or unit is "week", ..."
Consider refactoring this into an abstract operation, which could be called IsCalendarUnit. This should make several long lines in the spec more readable, as well as improve readability in the reference code.
After #2519 and #2612 there will be many instances of "If unit is "year", or unit is "month", or unit is "week", ..."
Consider refactoring this into an abstract operation, which could be called IsCalendarUnit. This should make several long lines in the spec more readable, as well as improve readability in the reference code.
Thanks to @Mrashes for the suggestion.
The text was updated successfully, but these errors were encountered: