mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
cob: Refactor Thread methods
This commit is contained in:
@@ -97,9 +97,10 @@ fn comment(
|
||||
store::Error::NotFound(_, _) => anyhow::anyhow!("Could not find issue {}", options.id),
|
||||
_ => e.into(),
|
||||
})?;
|
||||
let (comment_id, _) = issue.root().expect("root comment always exists");
|
||||
let (comment_id, _) = issue.comments().next().expect("root comment always exists");
|
||||
|
||||
issue.comment(message, *comment_id, &signer)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user