Skip to content

Commit

Permalink
chore: improve function clarity (#66)
Browse files Browse the repository at this point in the history
Ticket 🎫
This closes #65.

Description 📖
This simply removes the double assignment syntax, but does not change any functionality.
  • Loading branch information
velramiir authored Sep 27, 2023
1 parent f46105d commit 58c54ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controller/icd10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class ICD10Controller {
private static removeExtensions(
res: Fuse.FuseResult<ICodeSystem_Concept>[]
): Fuse.FuseResult<ICodeSystem_Concept>[] {
res.forEach((r) => (r.item.extension = r.item.modifierExtension = undefined));
res.forEach((r) => {
r.item.extension = undefined;
r.item.modifierExtension = undefined;
});
return res;
}
}

0 comments on commit 58c54ff

Please sign in to comment.