hive-forge: defer repo resolution to the accessor, not construction
This commit is contained in:
parent
cc2503d9c7
commit
fe7bf81d4a
14 changed files with 57 additions and 35 deletions
|
|
@ -45,7 +45,7 @@ pub struct Args {
|
|||
/// writing the response to stdout.
|
||||
pub fn run(client: &Client, args: Args) -> Result<()> {
|
||||
let body = body::resolve_required(args.body.as_deref(), args.body_file.as_deref(), "comment")?;
|
||||
let repo = client.repo();
|
||||
let repo = client.repo()?;
|
||||
|
||||
if !args.force {
|
||||
// Degrade open: a transport failure checking notifications must
|
||||
|
|
|
|||
Loading…
Reference in a new issue