Skip to content

Commit 9ea1200

Browse files
authored
Remove redundant semicolon from generation of discriminator condition fragments (#791)
1 parent 45efd55 commit 9ea1200

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/light-ghosts-fall.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codama/renderers-js': patch
3+
---
4+
5+
Remove redundant semicolon from generation of discriminator condition fragments

packages/renderers-js/src/fragments/discriminatorCondition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function getDiscriminatorConditionFragment(
5757
}),
5858
c => c.join(' && '),
5959
),
60-
f => mapFragmentContent(f, c => `if (${c}) { ${scope.ifTrue}; }`),
60+
f => mapFragmentContent(f, c => `if (${c}) { ${scope.ifTrue} }`),
6161
);
6262
}
6363

0 commit comments

Comments
 (0)