Skip to content

Commit

Permalink
Refacto: function to arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Mar 2, 2025
1 parent c127ba2 commit 3548b69
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class ComponentModule {
return new ComponentModule(module.slug.get(), module.description, module.properties, module.tags, this.buildNormalizedContent(module));
}

private static buildNormalizedContent(module: Module): string {
return `${module.description.toLowerCase()} ${module.slug.normalized()} ${module.tags.join(' ')}`;
}
private static buildNormalizedContent = (module: Module): string =>
`${module.description.toLowerCase()} ${module.slug.normalized()} ${module.tags.join(' ')}`;
}

0 comments on commit 3548b69

Please sign in to comment.