diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-08-24 15:55:38 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-08-26 20:06:43 +0000 |
commit | b833cf484f15bd1e689afac1eedcf8fe11b28d21 (patch) | |
tree | f8be8a0ca450b75b029d30ec6d397b4b27ea0023 /server/sonar-web/src/main/js/components/measure | |
parent | c39ab47130cf79261312b7b08afbcb2c79441f9c (diff) | |
download | sonarqube-b833cf484f15bd1e689afac1eedcf8fe11b28d21.tar.gz sonarqube-b833cf484f15bd1e689afac1eedcf8fe11b28d21.zip |
SONAR-12616 Drop deprecated 'periods'
Diffstat (limited to 'server/sonar-web/src/main/js/components/measure')
-rw-r--r-- | server/sonar-web/src/main/js/components/measure/utils.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/components/measure/utils.ts b/server/sonar-web/src/main/js/components/measure/utils.ts index 6d07dcb1b05..05895c358d2 100644 --- a/server/sonar-web/src/main/js/components/measure/utils.ts +++ b/server/sonar-web/src/main/js/components/measure/utils.ts @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { getRatingTooltip as nextGetRatingTooltip, isDiffMetric } from '../../helpers/measures'; -import { getLeakPeriod } from '../../helpers/periods'; const KNOWN_RATINGS = [ 'sqale_rating', @@ -37,11 +36,7 @@ export function enhanceMeasure(measure: T.Measure, metrics: T.Dict<T.Metric>): T } export function getLeakValue(measure: T.MeasureIntern | undefined): string | undefined { - if (!measure || !measure.periods) { - return undefined; - } - const period = getLeakPeriod(measure.periods); - return period && period.value; + return measure?.period?.value; } export function getRatingTooltip(metricKey: string, value: number): string | undefined { |