Skip to content

Commit

Permalink
I thought I had prettier run on save
Browse files Browse the repository at this point in the history
  • Loading branch information
SoAsEr committed May 16, 2021
1 parent 73e4936 commit dc28feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vocabularies/validation/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const def: CodeKeywordDefinition = {
error,
code(cxt: KeywordCxt) {
const {gen, data, $data, schemaCode, schema} = cxt
if($data || (typeof schema === 'object' && schema !== null)){
if ($data || (typeof schema === "object" && schema !== null)) {
cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`)
} else {
cxt.fail(_`${schema}!==${data}`)
Expand Down
2 changes: 1 addition & 1 deletion lib/vocabularies/validation/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const def: CodeKeywordDefinition = {

function equalCode(vSchema: Name, i: number): Code {
const sch = schema[i]
return typeof sch === "object" && sch!==null
return typeof sch === "object" && sch !== null
? _`${eql}(${data}, ${vSchema}[${i}])`
: _`${data} === ${sch}`
}
Expand Down

0 comments on commit dc28feb

Please sign in to comment.