Skip to content

Commit

Permalink
fix(helpers): Add non-null asserts to min/max function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzaaft committed Nov 22, 2023
1 parent 6cb8ddf commit cdb6d88
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 cdb6d88

Please sign in to comment.