Skip to content

Commit

Permalink
chore(lint): fix lint issues in last pr
Browse files Browse the repository at this point in the history
  • Loading branch information
plwalters committed Oct 10, 2015
1 parent 670a8b0 commit 131f16c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class MinimumLengthValidationRule extends ValidationRule {
super(
minimumLength,
(newValue, minLength) => {
newValue = typeof newValue == 'number' ? newValue.toString() : newValue;
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= minLength;
},
null,
Expand All @@ -304,7 +304,7 @@ export class MaximumLengthValidationRule extends ValidationRule {
super(
maximumLength,
(newValue, maxLength) => {
newValue = typeof newValue == 'number' ? newValue.toString() : newValue;
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length <= maxLength;
},
null,
Expand All @@ -318,7 +318,7 @@ export class BetweenLengthValidationRule extends ValidationRule {
super(
{minimumLength: minimumLength, maximumLength: maximumLength},
(newValue, threshold) => {
newValue = typeof newValue == 'number' ? newValue.toString() : newValue;
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined
&& newValue.length >= threshold.minimumLength
&& newValue.length <= threshold.maximumLength;
Expand Down

0 comments on commit 131f16c

Please sign in to comment.