File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -831,10 +831,6 @@ function buildValue (location, input) {
831
831
code += `
832
832
else throw new Error(\`The value $\{JSON.stringify(${ input } )} does not match schema definition.\`)
833
833
`
834
- } else if ( isEmpty ( schema ) ) {
835
- code += `
836
- json += JSON.stringify(${ input } )
837
- `
838
834
} else {
839
835
code += `
840
836
json += JSON.stringify(${ input } )
@@ -925,16 +921,6 @@ function buildValue (location, input) {
925
921
return code
926
922
}
927
923
928
- function isEmpty ( schema ) {
929
- // eslint-disable-next-line
930
- for ( var key in schema ) {
931
- if ( Object . prototype . hasOwnProperty . call ( schema , key ) && schema [ key ] !== undefined ) {
932
- return false
933
- }
934
- }
935
- return true
936
- }
937
-
938
924
module . exports = build
939
925
940
926
module . exports . validLargeArrayMechanisms = validLargeArrayMechanisms
You can’t perform that action at this time.
0 commit comments