From 31d35a6884dcad78903fd2d6c490a62be9638c80 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Wed, 9 Jan 2019 22:21:42 +0000 Subject: [PATCH] rename --- .../grafana-ui/src/utils/ValueFormats/valueFormats.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts b/packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts index e70a4d186c7..ade0115fef2 100644 --- a/packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts +++ b/packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts @@ -20,7 +20,7 @@ interface ValueFormatterIndex { // Globals & formats cache let categories: ValueFormatCategory[] = []; const index: ValueFormatterIndex = {}; -let hasBuildIndex = false; +let hasBuiltIndex = false; export function toFixed(value: number, decimals?: number): string { if (value === null) { @@ -128,11 +128,11 @@ function buildFormats() { } } - hasBuildIndex = true; + hasBuiltIndex = true; } export function getValueFormat(id: string): ValueFormatter { - if (!hasBuildIndex) { + if (!hasBuiltIndex) { buildFormats(); } @@ -140,7 +140,7 @@ export function getValueFormat(id: string): ValueFormatter { } export function getValueFormatterIndex(): ValueFormatterIndex { - if (!hasBuildIndex) { + if (!hasBuiltIndex) { buildFormats(); } @@ -148,7 +148,7 @@ export function getValueFormatterIndex(): ValueFormatterIndex { } export function getUnitFormats() { - if (!hasBuildIndex) { + if (!hasBuiltIndex) { buildFormats(); }