diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-23 20:38:19 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-30 09:20:37 +0100 |
commit | 3aeea07185ebb2eceeab4a0ec520f7d641d02f39 (patch) | |
tree | 0406942e88fa3ae9d9539186ff31520beaac90ac /server/sonar-web/src/main/js/helpers/measures.ts | |
parent | 973d117229fc17176e9ea3384ec4a737178b28c2 (diff) | |
download | sonarqube-3aeea07185ebb2eceeab4a0ec520f7d641d02f39.tar.gz sonarqube-3aeea07185ebb2eceeab4a0ec520f7d641d02f39.zip |
use eslint for typescript, update eslint configuration (#2742)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/measures.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/measures.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/measures.ts b/server/sonar-web/src/main/js/helpers/measures.ts index 8c200a239ac..c0e89838f59 100644 --- a/server/sonar-web/src/main/js/helpers/measures.ts +++ b/server/sonar-web/src/main/js/helpers/measures.ts @@ -101,7 +101,7 @@ function useFormatter( formatter: Formatter, options?: any ): string { - return value != undefined && value !== '' ? formatter(value, options) : ''; + return value !== undefined && value !== '' ? formatter(value, options) : ''; } function getFormatter(type: string): Formatter { @@ -313,7 +313,7 @@ function formatDurationShort( function durationFormatter(value: string | number): string { if (typeof value === 'string') { - value = parseInt(value); + value = parseInt(value, 10); } if (value === 0) { return '0'; @@ -330,7 +330,7 @@ function durationFormatter(value: string | number): string { function shortDurationFormatter(value: string | number): string { if (typeof value === 'string') { - value = parseInt(value); + value = parseInt(value, 10); } if (value === 0) { return '0'; |