Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Aug 8, 2024
1 parent 814bfbe commit 43307ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rust/agama-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ async fn run_command(cli: Cli) -> Result<(), ServiceError> {
Commands::Auth(subcommand) => {
let mut client = BaseHTTPClient::bare()?;

client.base_url = cli.opts.api.strip_suffix("/").unwrap_or(client.base_url.as_str()).to_string();
client.base_url = cli
.opts
.api
.strip_suffix("/")
.unwrap_or(client.base_url.as_str())
.to_string();

run_auth_cmd(client, subcommand).await?;
}
Expand Down

0 comments on commit 43307ea

Please sign in to comment.