Skip to content

Commit

Permalink
clean up limitNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Oct 24, 2020
1 parent 7e1cfa8 commit c25fb13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vocabularies/validation/limitNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ const def: CodeKeywordDefinition = {
error,
code(cxt: KeywordCxt) {
const {keyword, data, schemaCode} = cxt
// const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data)
cxt.fail$data(_`(${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data}))`)
cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`)
},
}

Expand Down

0 comments on commit c25fb13

Please sign in to comment.