Skip to content

Commit b0f2963

Browse files
fix: Fix linting issues
1 parent 11d37fa commit b0f2963

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@internationalized/date/src/manipulation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ function balanceDay(date: Mutable<AnyCalendarDate>) {
115115

116116
function constrainMonthDay(date: Mutable<AnyCalendarDate>, ignoreDay?: boolean) {
117117
date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
118-
if(ignoreDay) {
118+
if (ignoreDay) {
119119
date.day = Math.max(1, Math.min(date.calendar.getMaxDays(), date.day));
120-
}else {
120+
} else {
121121
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
122122
}
123123
}
@@ -288,9 +288,9 @@ export function cycleDate(value: CalendarDate | CalendarDateTime, field: DateFie
288288
mutable.month = cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options?.round);
289289
break;
290290
case 'day':
291-
if(ignoreDay) {
292-
mutable.day = cycleValue(value.day, amount, 1, value.calendar.getMaxDays(), options?.round);
293-
}else {
291+
if (ignoreDay) {
292+
mutable.day = cycleValue(value.day, amount, 1, value.calendar.getMaxDays(), options?.round);
293+
} else {
294294
mutable.day = cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options?.round);
295295
}
296296
break;

0 commit comments

Comments
 (0)