diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-02 14:37:14 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-05 21:30:59 +0100 |
| commit | a744f4aae9ffee9dd246090bef486b09433778d0 (patch) | |
| tree | 5d1083668ec989d1fc8529a7ece60dc2bd4ec594 /src/bin/ngit/sub_commands/login.rs | |
| parent | 0f3969325385f2707e359cb28d9c49c509310452 (diff) | |
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
Diffstat (limited to 'src/bin/ngit/sub_commands/login.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/login.rs | 7 |
1 files changed, 1 insertions, 6 deletions
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<()> { | |||
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | let git_repo_result = Repo::discover().context("failed to find a git repository"); | 34 | let git_repo_result = Repo::discover().context("failed to find a git repository"); |
| 35 | let git_repo = { | 35 | let git_repo = { git_repo_result.ok() }; |
| 36 | match git_repo_result { | ||
| 37 | Ok(git_repo) => Some(git_repo), | ||
| 38 | Err(_) => None, | ||
| 39 | } | ||
| 40 | }; | ||
| 41 | 36 | ||
| 42 | let (logged_out, log_in_locally_only) = logout(git_repo.as_ref(), command_args.local).await?; | 37 | let (logged_out, log_in_locally_only) = logout(git_repo.as_ref(), command_args.local).await?; |
| 43 | if logged_out || log_in_locally_only { | 38 | if logged_out || log_in_locally_only { |