diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-04-17 21:58:45 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-04-17 21:58:45 +0200 |
commit | c272e9f6daeec1e941a1bbd80a5badb77a56576d (patch) | |
tree | 2c9c77430e88aaaf449eb49880fc44f0220bf559 /src/issues.rs | |
parent | improve host url and repo name detection (diff) | |
download | forgejo-cli-c272e9f6daeec1e941a1bbd80a5badb77a56576d.tar.xz forgejo-cli-c272e9f6daeec1e941a1bbd80a5badb77a56576d.zip |
format
Diffstat (limited to 'src/issues.rs')
-rw-r--r-- | src/issues.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/issues.rs b/src/issues.rs index 0e49cbe..4a3a708 100644 --- a/src/issues.rs +++ b/src/issues.rs @@ -100,7 +100,9 @@ impl IssueCommand { use IssueSubcommand::*; let repo = RepoInfo::get_current(host_name, self.repo.as_deref(), self.remote.as_deref())?; let api = keys.get_api(repo.host_url())?; - let repo = repo.name().ok_or_eyre("couldn't get repo name, try specifying with --repo")?; + let repo = repo + .name() + .ok_or_eyre("couldn't get repo name, try specifying with --repo")?; match self.command { Create { title, body } => create_issue(&repo, &api, title, body).await?, View { id, command } => match command.unwrap_or(ViewCommand::Body) { |