Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Aug 29, 2024
1 parent a4f8dba commit f625b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions rust/agama-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ async fn build_manager<'a>() -> anyhow::Result<ManagerClient<'a>> {
async fn run_command(cli: Cli) -> Result<(), ServiceError> {
// we need to distinguish commands on those which assume that authentication JWT is already
// available and those which not (or don't need it)
let mut client = if matches!(cli.command, Commands::Auth(_)) {
let mut client = if let Commands::Auth(_) = cli.command {
BaseHTTPClient::default()
}
else {
} else {
// this deals with authentication need inside
BaseHTTPClient::new()?
};
Expand All @@ -150,9 +149,7 @@ async fn run_command(cli: Cli) -> Result<(), ServiceError> {
.to_string();

match cli.command {
Commands::Config(subcommand) => {
run_config_cmd(client, subcommand).await?
}
Commands::Config(subcommand) => run_config_cmd(client, subcommand).await?,
Commands::Probe => {
let manager = build_manager().await?;
wait_for_services(&manager).await?;
Expand Down
2 changes: 1 addition & 1 deletion service/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
agama-yast (9.devel505)
agama-yast (9.devel526)
cfa (~> 1.0.2)
cfa_grub2 (~> 2.0.0)
cheetah (~> 1.0.0)
Expand Down

0 comments on commit f625b32

Please sign in to comment.