Skip to content

Commit

Permalink
Remove redundant check against type field
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jul 15, 2024
1 parent e255828 commit 359e70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/Meditor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const isJSONSchema = (schema: JSONSchemaUnionType): schema is JSONSchema7

export const isBasicSchema = (schema: JSONSchemaUnionType): schema is BasicSchema => (
isJSONSchema(schema)
&& (isBasicType(schema.type) || schema.type === undefined)
&& (isBasicType(schema.type))
);

export const isObjectSchema = (schema: JSONSchemaUnionType): schema is ObjectSchema => (
Expand Down

0 comments on commit 359e70f

Please sign in to comment.