(event UiEvent)
| 779 | return strings.Join(nonEmptyStrings(parts), "\n") |
| 780 | default: |
| 781 | return "" |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | func transcriptContentBlocks(content any) []map[string]any { |
| 786 | switch typed := content.(type) { |
| 787 | case []map[string]any: |
| 788 | return typed |
| 789 | case []any: |
| 790 | blocks := make([]map[string]any, 0, len(typed)) |
| 791 | for _, raw := range typed { |
| 792 | if block, ok := raw.(map[string]any); ok { |
no test coverage detected