diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/export_keys.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/export_keys.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/ngit/sub_commands/export_keys.rs b/src/bin/ngit/sub_commands/export_keys.rs index 45b1b89..4a32a3a 100644 --- a/src/bin/ngit/sub_commands/export_keys.rs +++ b/src/bin/ngit/sub_commands/export_keys.rs | |||
| @@ -12,12 +12,7 @@ use crate::git::Repo; | |||
| 12 | 12 | ||
| 13 | pub async fn launch() -> Result<()> { | 13 | pub async fn launch() -> Result<()> { |
| 14 | let git_repo_result = Repo::discover().context("failed to find a git repository"); | 14 | let git_repo_result = Repo::discover().context("failed to find a git repository"); |
| 15 | let git_repo = { | 15 | let git_repo = { git_repo_result.ok() }; |
| 16 | match git_repo_result { | ||
| 17 | Ok(git_repo) => Some(git_repo), | ||
| 18 | Err(_) => None, | ||
| 19 | } | ||
| 20 | }; | ||
| 21 | 16 | ||
| 22 | if let Ok((signer_info, source)) = get_signer_info(&git_repo.as_ref(), &None, &None, &None) { | 17 | if let Ok((signer_info, source)) = get_signer_info(&git_repo.as_ref(), &None, &None, &None) { |
| 23 | if let Ok((_, user_ref, source)) = load_existing_login( | 18 | if let Ok((_, user_ref, source)) = load_existing_login( |