(file: ImportFile)
| 33 | } |
| 34 | |
| 35 | function parseJsonFile(file: ImportFile): unknown | null { |
| 36 | try { |
| 37 | return JSON.parse(file.content) |
| 38 | } |
| 39 | catch { |
| 40 | return null |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function readString(record: SnippetsLabRecord, key: string): string | null { |
| 45 | const value = record[key] |
no outgoing calls
no test coverage detected