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.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/helpers/measures.js b/server/sonar-web/src/main/js/helpers/measures.js
index 73c89985ed3..69593cecf53 100644
--- a/server/sonar-web/src/main/js/helpers/measures.js
+++ b/server/sonar-web/src/main/js/helpers/measures.js
@@ -261,12 +261,12 @@ function formatDuration (isNegative, days, hours, minutes) {
if (shouldDisplayHours(days, hours)) {
formatted = addSpaceIfNeeded(formatted);
formatted += translateWithParameters('work_duration.x_hours',
- isNegative && formatted.length === 0 ? -1 * hours : hours);
+ isNegative && formatted.length === 0 ? -1 * hours : hours);
}
if (shouldDisplayMinutes(days, hours, minutes)) {
formatted = addSpaceIfNeeded(formatted);
formatted += translateWithParameters('work_duration.x_minutes',
- isNegative && formatted.length === 0 ? -1 * minutes : minutes);
+ isNegative && formatted.length === 0 ? -1 * minutes : minutes);
}
return formatted;
}
@@ -370,17 +370,17 @@ function getMaintainabilityRatingTooltip (rating) {
if (rating < 2) {
return translateWithParameters(
- 'metric.sqale_rating.tooltip.A',
- formatMeasure(maintainabilityGrid[0] * 100, 'PERCENT')
+ 'metric.sqale_rating.tooltip.A',
+ formatMeasure(maintainabilityGrid[0] * 100, 'PERCENT')
);
}
const ratingLetter = formatMeasure(rating, 'RATING');
return translateWithParameters(
- 'metric.sqale_rating.tooltip',
- ratingLetter,
- formatMeasure(maintainabilityRatingThreshold * 100, 'PERCENT')
+ 'metric.sqale_rating.tooltip',
+ ratingLetter,
+ formatMeasure(maintainabilityRatingThreshold * 100, 'PERCENT')
);
}