implement suggestions from copilot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user