From d59844eb523f7f5a69b2b0d726d5b16672fa761a Mon Sep 17 00:00:00 2001 From: Devin Kelley <105753233+devkelley@users.noreply.github.com> Date: Thu, 26 Oct 2023 12:40:36 -0700 Subject: [PATCH] fix devskim err --- core/common/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/common/src/utils.rs b/core/common/src/utils.rs index c2a633bd..4620cc62 100644 --- a/core/common/src/utils.rs +++ b/core/common/src/utils.rs @@ -198,11 +198,11 @@ pub fn get_uri(uri: &str) -> Result { "Unable to get environment var '{HOST_GATEWAY_ENV_VAR}' with error: {err}" )) })?; - let localhost_alias = env::var(LOCALHOST_ALIAS_ENV_VAR).map_err(|err| { + let localhost_alias = env::var(LOCALHOST_ALIAS_ENV_VAR).map_err(|err| { // DevSkim: ignore DS162092 Status::failed_precondition(format!( "Unable to get environment var '{LOCALHOST_ALIAS_ENV_VAR}' with error: {err}" )) - })?; // DevSkim: ignore DS162092 + })?; uri.replace(&localhost_alias, &host_gateway) // DevSkim: ignore DS162092 };