Skip to content

Commit 468785e

Browse files
committed
Lint
1 parent cb80bfd commit 468785e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specification/compiler/model/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function hoistPropertyAnnotations (property: model.Property, jsDocs: JSDoc[]): v
548548
switch (property.type.type.name) {
549549
case 'boolean':
550550
assert(jsDocs, value === 'true' || value === 'false', `The default value for ${property.name} should be a boolean`)
551-
property.default = value === 'true' ? true : false
551+
property.default = value === 'true'
552552
break
553553
case 'number':
554554
assert(jsDocs, !isNaN(Number(value)), `The default value for ${property.name} should be a number`)

0 commit comments

Comments
 (0)