From a744f4aae9ffee9dd246090bef486b09433778d0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 2 May 2025 14:37:14 +0100 Subject: chore: nix flake update update nix dependancies to latest version using default update options run `cargo clippy --fix` and `cargo fmt` to fix new clippy errors --- src/bin/ngit/sub_commands/login.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/bin/ngit/sub_commands/login.rs') diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index 06236ec..e76a089 100644 --- a/src/bin/ngit/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs @@ -32,12 +32,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> { }; let git_repo_result = Repo::discover().context("failed to find a git repository"); - let git_repo = { - match git_repo_result { - Ok(git_repo) => Some(git_repo), - Err(_) => None, - } - }; + let git_repo = { git_repo_result.ok() }; let (logged_out, log_in_locally_only) = logout(git_repo.as_ref(), command_args.local).await?; if logged_out || log_in_locally_only { -- cgit v1.2.3