Skip to content

Commit

Permalink
Merge pull request #392 from Uzaaft/master
Browse files Browse the repository at this point in the history
fix(helpers): Add non-null asserts to min/max function usage
  • Loading branch information
wa0x6e authored Dec 25, 2023
2 parents 1cf2107 + cdb6d88 commit 276baeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/DateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ export default class DateHelper {
start = start.startOf(interval as ManipulateType);

end = end.startOf(interval as ManipulateType);
let pivot = dayjs.min(start, end);
end = dayjs.max(start, end);
let pivot = dayjs.min(start, end)!;
end = dayjs.max(start, end)!;
const result: Timestamp[] = [];

if (!excludeEnd) {
Expand Down

0 comments on commit 276baeb

Please sign in to comment.