Skip to content

Commit

Permalink
fix devskim err
Browse files Browse the repository at this point in the history
  • Loading branch information
devkelley committed Oct 26, 2023
1 parent b262be2 commit d59844e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ pub fn get_uri(uri: &str) -> Result<String, Status> {
"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
};
Expand Down

0 comments on commit d59844e

Please sign in to comment.