Skip to content

Commit

Permalink
refactor(git): commitDate explicitly set default for refDate (#1750)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDivisionByZerox authored Jan 22, 2023
1 parent 88d8392 commit ee94f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class GitModule {
refDate?: string | Date | number;
} = {}
): string {
const { refDate } = options;
const { refDate = new Date() } = options;

const dateParts = GIT_DATE_FORMAT_BASE.format(
this.faker.date.recent({ days: 1, refDate })
Expand Down

0 comments on commit ee94f3e

Please sign in to comment.