Skip to content

Commit

Permalink
Refactor method name for clarity
Browse files Browse the repository at this point in the history
Changed method name from createTodayRange to createTodayRangePreset for improved readability and consistency with other similar methods. This enhances code maintainability and aligns with naming conventions across the project.
  • Loading branch information
leewyatt committed Sep 3, 2024
1 parent de801f0 commit 56edb65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public DateRangeView() {
endCalendarView = getEndCalendarView();
endCalendarView.setSelectionModel(selectionModel);

DateRangePreset todayRange = createTodayRange();
DateRangePreset todayRange = createTodayRangePreset();
getPresets().addAll(todayRange, createYesterdayPreset(), createThisWeekPreset(), createThisMonthPreset(), createLastMonthPreset());
setValue(todayRange.getDateRangeSupplier().get());
}
Expand Down Expand Up @@ -320,7 +320,7 @@ public final ObservableList<DateRangePreset> getPresets() {
return presets;
}

private DateRangePreset createTodayRange() {
private DateRangePreset createTodayRangePreset() {
return new DateRangePreset("Today", () -> new DateRange("Today", LocalDate.now()));
}

Expand Down

0 comments on commit 56edb65

Please sign in to comment.