Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: it's just rude to assign to date now #1435

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
remove it
  • Loading branch information
pauldambra committed Sep 24, 2024
commit 7d09e249c5aec749773efcc13c7e9b1bd736e24d
4 changes: 0 additions & 4 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -117,10 +117,6 @@ export const isValidRegex = function (str: string): boolean {
return true
}

export const timestamp = function (): number {
return Date.now ? Date.now() : +new Date()
}

export const trySafe = function <T>(fn: () => T): T | undefined {
try {
return fn()
Loading