Skip to content

Commit

Permalink
fixup! refactor: simplify toCode function
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 21, 2024
1 parent 619594f commit 9882c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function toCode (code: string | number): string {
}

const codeClass = Math.floor(code / 100)
const codeDetail = String(code - codeClass * 100).padStart(2, "0")
const codeDetail = String(code - codeClass * 100).padStart(2, '0')

return `${codeClass}.${codeDetail}`
}
Expand Down

0 comments on commit 9882c5f

Please sign in to comment.