Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -22,10 +22,6 @@ var deleteCmd = &cobra.Command{
|
|||||||
func runDeleteCmd(cmd *cobra.Command, args []string) error {
|
func runDeleteCmd(cmd *cobra.Command, args []string) error {
|
||||||
deleteID := strings.Join(args, " ")
|
deleteID := strings.Join(args, " ")
|
||||||
|
|
||||||
if deleteID == "" {
|
|
||||||
return fmt.Errorf("issue ID cannot be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
issue := &models.Issue{
|
issue := &models.Issue{
|
||||||
ID: deleteID,
|
ID: deleteID,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user