Skip to content

Commit

Permalink
refactor: remove console.time
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoVictor6 committed Nov 30, 2023
1 parent 9de69f0 commit dbe078f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const renderedHtml = render(
)

export function RenderRolesSection({ roles }: RenderRolesSectionProps): string {
console.time('RenderRolesSection [forEach]')
const obj = {
international: {
count: 0,
Expand All @@ -45,9 +44,7 @@ export function RenderRolesSection({ roles }: RenderRolesSectionProps): string {
obj.national.count++
}
})
console.timeEnd('RenderRolesSection [forEach]')

console.time('RenderRolesSection [render]')
const sanitizedHtml = renderedHtml
.replace(
RenderedKeys.internationalCount,
Expand All @@ -56,6 +53,5 @@ export function RenderRolesSection({ roles }: RenderRolesSectionProps): string {
.replace(RenderedKeys.nationalCount, obj.national.count.toString())
.replace(RenderedKeys.nationalRolesHtml, obj.national.html)
.replace(RenderedKeys.internationalRolesHtml, obj.international.html)
console.timeEnd('RenderRolesSection [render]')
return sanitizedHtml
}

0 comments on commit dbe078f

Please sign in to comment.