aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/measures.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/measures.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/measures.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/measures.js b/server/sonar-web/src/main/js/helpers/measures.js
index 360380ec65f..d5cf7214289 100644
--- a/server/sonar-web/src/main/js/helpers/measures.js
+++ b/server/sonar-web/src/main/js/helpers/measures.js
@@ -290,15 +290,17 @@ function shortDurationFormatter (value) {
}
function durationVariationFormatter (value) {
- if (value === 0) {
- return '0';
+ /* eslint eqeqeq: 0 */
+ if (value == 0) {
+ return '+0';
}
const formatted = durationFormatter(value);
return formatted[0] !== '-' ? '+' + formatted : formatted;
}
function shortDurationVariationFormatter (value) {
- if (value === 0) {
+ /* eslint eqeqeq: 0 */
+ if (value == 0) {
return '+0';
}
const formatted = shortDurationFormatter(value);