From 5e150d7f046f6a50ca0f322f4690c5f4d3582dbc Mon Sep 17 00:00:00 2001 From: John Cowen Date: Tue, 15 Dec 2020 18:14:25 +0000 Subject: [PATCH] ui: Lint get-environment.js (#9400) --- ui/packages/consul-ui/app/utils/get-environment.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/packages/consul-ui/app/utils/get-environment.js b/ui/packages/consul-ui/app/utils/get-environment.js index 0405ecf484..aa4f80f7f7 100644 --- a/ui/packages/consul-ui/app/utils/get-environment.js +++ b/ui/packages/consul-ui/app/utils/get-environment.js @@ -52,12 +52,12 @@ export default function(config = {}, win = window, doc = document) { // forcing/providing amount of possible HTTP connections // re-setting the base url for the API etc const operator = function(str, env) { - let protocol; + let protocol, dashboards, provider, proxy; switch (str) { case 'CONSUL_UI_CONFIG': - const dashboards = {}; - const provider = env('CONSUL_METRICS_PROVIDER'); - const proxy = env('CONSUL_METRICS_PROXY_ENABLED'); + dashboards = {}; + provider = env('CONSUL_METRICS_PROVIDER'); + proxy = env('CONSUL_METRICS_PROXY_ENABLED'); dashboards.service = env('CONSUL_SERVICE_DASHBOARD_URL'); if (provider) { ui_config.metrics_provider = provider;