(doc: Api.Document)
| 369 | } |
| 370 | return false; |
| 371 | } |
| 372 | |
| 373 | private getFileNameFromDocument(doc: Api.Document): string | null { |
| 374 | if (!doc || !doc.attributes) return null; |
| 375 | for (const attr of doc.attributes) { |
| 376 | if (attr instanceof Api.DocumentAttributeFilename) { |
| 377 | return attr.fileName; |
| 378 | } |
| 379 | } |
| 380 | return null; |
| 381 | } |
| 382 |
no outgoing calls
no test coverage detected