From 8ec03bb32093707d38a04b3978a0f0802e077585 Mon Sep 17 00:00:00 2001 From: viljarb Date: Thu, 5 Feb 2026 17:45:51 +0100 Subject: [PATCH] simplifying the code in pkg/cli/commands/delete.go --- pkg/cli/commands/delete.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/cli/commands/delete.go b/pkg/cli/commands/delete.go index 10045c9..2569332 100644 --- a/pkg/cli/commands/delete.go +++ b/pkg/cli/commands/delete.go @@ -4,8 +4,6 @@ import ( "fmt" "strings" - "github.com/LazyBachelor/LazyPM/internal/models" - "github.com/spf13/cobra" ) @@ -22,11 +20,7 @@ var deleteCmd = &cobra.Command{ func runDeleteCmd(cmd *cobra.Command, args []string) error { deleteID := strings.Join(args, " ") - issue := &models.Issue{ - ID: deleteID, - } - - err := svc.Beads.DeleteIssue(cmd.Context(), issue.ID) + err := svc.Beads.DeleteIssue(cmd.Context(), deleteID) if err != nil { return fmt.Errorf("error deleting issue: %w", err) }