Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 288b08d

Browse files
author
Hans Kristian Flaatten
committed
fix(eslint): resolve no-mixed-operators error
1 parent 8b52f1a commit 288b08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ module.exports.prototype.parseStringVal = function parseStringVal(string) {
187187
} else if (this.string.toBoolean && string.toLowerCase() === 'false') {
188188
return false;
189189
} else if (this.string.toNumber && !isNaN(parseInt(string, 10)) &&
190-
(+string - +string + 1) >= 0) {
190+
((+string - +string) + 1) >= 0) {
191191
return parseFloat(string, 10);
192192
}
193193

0 commit comments

Comments
 (0)