Skip to content

Commit 3ed494f

Browse files
refactor: remove unreachanble condition branch (#516)
1 parent 8997bf1 commit 3ed494f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,12 +853,10 @@ function buildValue (location, input) {
853853
else
854854
throw new Error(\`Item $\{JSON.stringify(${input})} does not match schema definition.\`)
855855
`
856-
} else if (schema.type === undefined) {
856+
} else {
857857
code += `
858858
json += JSON.stringify(${input})
859859
`
860-
} else {
861-
throw new Error(`${schema.type} unsupported`)
862860
}
863861
break
864862
default:

0 commit comments

Comments
 (0)