Skip to content

Commit 9eba04a

Browse files
committed
fix lint
1 parent f6ddda3 commit 9eba04a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/helpers/ConstrainedTypes.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ function addDiscriminatorTypeToUnionModel(
307307
}
308308

309309
if (propertyTypes.size === 1) {
310-
constrainedModel.options.discriminator.type = propertyTypes
311-
.keys()
312-
.next().value as string | undefined;
310+
constrainedModel.options.discriminator.type = propertyTypes.keys().next()
311+
.value as string | undefined;
313312
}
314313
}

0 commit comments

Comments
 (0)