Skip to content

Commit

Permalink
Added // eslint-disable-next-line no-extra-boolean-cast to bypass the…
Browse files Browse the repository at this point in the history
… warnings.
  • Loading branch information
vinothbabukm committed May 31, 2020
1 parent e36ad3a commit 0c534bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function trimWS (
if (leftTrim === '_' || leftTrim === 'slurp') {
// console.log('trimming left' + leftTrim)
// full slurp
// eslint-disable-next-line no-extra-boolean-cast
if (!!String.prototype.trimLeft) {
str = str.trimLeft()
} else {
Expand All @@ -97,6 +98,7 @@ function trimWS (
if (rightTrim === '_' || rightTrim === 'slurp') {
// console.log('trimming right' + rightTrim)
// full slurp
// eslint-disable-next-line no-extra-boolean-cast
if (!!String.prototype.trimRight) {
str = str.trimRight()
} else {
Expand Down

0 comments on commit 0c534bc

Please sign in to comment.