Skip to content

Commit

Permalink
fix(validator): remove extra trim
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Jan 3, 2023
1 parent c0cfdc2 commit ee9b601
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion demo/validator/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function validator<T extends Record<string, unknown>>(valueObj: Record<string, u
validObj[paramName] = true;
}
else if (value === 'false' || value === '0') {
value = value.trim();
validObj[paramName] = false;
}
else {
Expand Down

0 comments on commit ee9b601

Please sign in to comment.