Skip to content

Commit

Permalink
Linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanreyes committed Feb 6, 2022
1 parent cfe0e03 commit 79d73aa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/utils/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,15 +566,12 @@ export default class Locale {
}
}
if (validHours) {
const hourOptions = this.getHourOptions(validHours, dateParts);
dateParts.hours = this.nearestOptionValue(dateParts.hours, hourOptions);
const options = this.getHourOptions(validHours, dateParts);
dateParts.hours = this.nearestOptionValue(dateParts.hours, options);
}
if (minuteIncrement) {
const minuteOptions = this.getMinuteOptions(minuteIncrement);
dateParts.minutes = this.nearestOptionValue(
dateParts.minutes,
minuteOptions,
);
const options = this.getMinuteOptions(minuteIncrement);
dateParts.minutes = this.nearestOptionValue(dateParts.minutes, options);
}
date = this.getDateFromParts(dateParts);
return date;
Expand Down

0 comments on commit 79d73aa

Please sign in to comment.