implement suggestions from copilot

This commit is contained in:
Robin Olsen
2026-02-10 00:04:13 +01:00
parent bb096ff19d
commit c773e61f4e
5 changed files with 40 additions and 25 deletions

View File

@@ -24,10 +24,14 @@ func runUpdateCmd(cmd *cobra.Command, args []string) error {
issueID := args[0]
issue, err := svc.Beads.GetIssue(cmd.Context(), issueID)
if err != nil || issue == nil {
if err != nil {
return fmt.Errorf("error getting issue: %w", err)
}
if issue == nil {
return fmt.Errorf("issue with ID %s not found", issueID)
}
updates, err := getUpdateValues(cmd)
if err != nil {
return fmt.Errorf("error getting update values: %w", err)