(ctx context.Context, data wshrpc.CommandDeleteBlockData)
| 461 | } |
| 462 | |
| 463 | func (ws *WshServer) DeleteSubBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error { |
| 464 | if data.BlockId == "" { |
| 465 | return fmt.Errorf("blockid is required") |
| 466 | } |
| 467 | err := wcore.DeleteBlock(ctx, data.BlockId, false) |
| 468 | if err != nil { |
| 469 | return fmt.Errorf("error deleting block: %w", err) |
| 470 | } |
| 471 | return nil |
| 472 | } |
| 473 | |
| 474 | func (ws *WshServer) DeleteBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error { |
| 475 | if data.BlockId == "" { |
nothing calls this directly
no test coverage detected