diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
commit | b7c119b2aaaa2f3579ca4aeef198eca7f38f1216 (patch) | |
tree | 16956eb295a2b0a21fcab07b4e2377c2cd59d3c9 /packages/react-shared | |
parent | 3c2af2067f768bd3ffe233d9a7c2d0232db6868e (diff) | |
download | dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.gz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.bz2 dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.lz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.xz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.zst dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.zip |
Fix many linter errors that showed up upon upgrading tsutil
Diffstat (limited to 'packages/react-shared')
-rw-r--r-- | packages/react-shared/src/utils/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-shared/src/utils/utils.ts b/packages/react-shared/src/utils/utils.ts index 0c0e7722c..d6b2a5cf5 100644 --- a/packages/react-shared/src/utils/utils.ts +++ b/packages/react-shared/src/utils/utils.ts @@ -37,7 +37,7 @@ export const utils = { const charArray = _.map(text, (char, i) => { const isNumber = !_.eq(_.parseInt(char), NaN); const isPrevNumber = i !== 0 && !_.eq(_.parseInt(text[i - 1]), NaN); - if (isNumber && (i == 0 || isPrevNumber)) { + if (isNumber && (i === 0 || isPrevNumber)) { return char; } if (char === char.toUpperCase() && i !== 0) { |