(/** @type {unknown} */ err)
| 307 | } |
| 308 | |
| 309 | function ignoreOnlyENOENT(/** @type {unknown} */ err) { |
| 310 | if ( |
| 311 | err instanceof Error && |
| 312 | /** @type {NodeJS.ErrnoException} */ (err).code === 'ENOENT' |
| 313 | ) { |
| 314 | return [] |
| 315 | } else { |
| 316 | spinner.stop() |
| 317 | throw err |
| 318 | } |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | async function toFile(/** @type {string} */ schemaPath) { |
nothing calls this directly
no outgoing calls
no test coverage detected