Skip to content

Commit

Permalink
refactor: fix explicit type declarations
Browse files Browse the repository at this point in the history
Explicit types where they can be easily inferred may add unnecessary verbosity for variables or parameters initialized to a number, string, or boolean
  • Loading branch information
deepsource-autofix[bot] authored May 5, 2023
1 parent d2e4e8f commit 074dc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date/formatters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const formatDate = (date: string | Date, format: string = 'DD/MM/YYYY'): string => {
export const formatDate = (date: string | Date, format = 'DD/MM/YYYY'): string => {
let year: string | number = ''
let month: string | number = ''
let day: string | number = ''
Expand Down

0 comments on commit 074dc9a

Please sign in to comment.