cob: Refactor Thread methods

This commit is contained in:
Alexis Sellier
2023-01-26 16:20:22 +01:00
parent e01838a70a
commit bb3787258a
3 changed files with 13 additions and 15 deletions
+2 -1
View File
@@ -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(())
}