Skip to content

Commit

Permalink
fix: correct validateData logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hkang1 committed Feb 17, 2022
1 parent 1b8ec40 commit 426ae77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/hermes.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ class Hermes {
if (i === 0) {
count = value.length;
}
else {
else if (value.length !== count) {
return { count, valid: false };
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/hermes.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ class Hermes {
if (i === 0) {
count = value.length;
}
else {
else if (value.length !== count) {
return { count, valid: false };
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/hermes.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var Hermes = (function (exports) {
if (i === 0) {
count = value.length;
}
else {
else if (value.length !== count) {
return { count, valid: false };
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Hermes {
const value = values[i];
if (i === 0) {
count = value.length;
} else {
} else if (value.length !== count) {
return { count, valid: false };
}
}
Expand Down

0 comments on commit 426ae77

Please sign in to comment.