Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/utils/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
return false;
}

// 'date' field should be a Date object if present
if ("date" in arg && !(arg.date instanceof Date)) {
return false;
}

Check warning on line 35 in src/utils/log.ts

View check run for this annotation

Codecov / codecov/patch

src/utils/log.ts#L34-L35

Added lines #L34 - L35 were not covered by tests

return true;
}