Skip to content

Commit 56ac298

Browse files
committed
fix lint from copilot suggestion
1 parent 43a72ca commit 56ac298

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/schema/union.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class Union extends SchemaType {
1919
if (!options || !Array.isArray(options.of) || options.of.length === 0) {
2020
throw new Error('Union schema type requires an array of types');
2121
}
22-
if (options && Array.isArray(options.of)) {
23-
this.schemaTypes = options.of.map(obj => options.parentSchema.interpretAsType(key, obj, schemaOptions));
2422
this.schemaTypes = options.of.map(obj => options.parentSchema.interpretAsType(key, obj, schemaOptions));
2523
}
2624

0 commit comments

Comments
 (0)