Skip to content

Commit 384a07d

Browse files
committed
return validation result directly
1 parent c5173af commit 384a07d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/validator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ ajv.addSchema(schema)
99

1010
export const isValidCffFile = () => {
1111
const { jsObject } = useCffstr()
12-
const isValid = ajv.validate(`${schema.$id}`, jsObject.value)
13-
return isValid
12+
return ajv.validate(`${schema.$id}`, jsObject.value)
1413
}
1514

1615
export const makeFieldValidator = (subschema: string) => {

0 commit comments

Comments
 (0)