aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/periods.js
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-17 09:10:48 +0100
committerGitHub <noreply@github.com>2017-03-17 09:10:48 +0100
commitde4365079bad2df3bdee2133576dc913ffbf1ab2 (patch)
treea522ccb952f0d37f454e8188e13b3dec3f731912 /server/sonar-web/src/main/js/helpers/periods.js
parent6a03df65cc0c91a26150ea172a2c480e07326ea1 (diff)
downloadsonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.tar.gz
sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.zip
format code using prettier (#1774)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/periods.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/periods.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/helpers/periods.js b/server/sonar-web/src/main/js/helpers/periods.js
index 59fb828c48f..0677d81c13c 100644
--- a/server/sonar-web/src/main/js/helpers/periods.js
+++ b/server/sonar-web/src/main/js/helpers/periods.js
@@ -20,7 +20,7 @@
import moment from 'moment';
import { translate, translateWithParameters } from './l10n';
-export function getPeriod (periods, index) {
+export function getPeriod(periods, index) {
if (!Array.isArray(periods)) {
return null;
}
@@ -28,11 +28,11 @@ export function getPeriod (periods, index) {
return periods.find(period => period.index === index);
}
-export function getLeakPeriod (periods) {
+export function getLeakPeriod(periods) {
return getPeriod(periods, 1);
}
-export function getPeriodLabel (period) {
+export function getPeriodLabel(period) {
if (!period) {
return null;
}
@@ -46,7 +46,7 @@ export function getPeriodLabel (period) {
return translateWithParameters(`overview.period.${period.mode}`, parameter);
}
-export function getPeriodDate (period) {
+export function getPeriodDate(period) {
if (!period) {
return null;
}
@@ -54,6 +54,6 @@ export function getPeriodDate (period) {
return moment(period.date).toDate();
}
-export function getLeakPeriodLabel (periods) {
+export function getLeakPeriodLabel(periods) {
return getPeriodLabel(getLeakPeriod(periods));
}