diff --git a/src/config.ts b/src/config.ts index 8af72d6..d275200 100644 --- a/src/config.ts +++ b/src/config.ts @@ -33,11 +33,8 @@ export async function readConfig(): Promise { try { const raw = await readFile(getConfigPath(), 'utf-8') return JSON.parse(raw) as CodeburnConfig - } catch (error) { - if ((error as NodeJS.ErrnoException).code === 'ENOENT') { - return {} - } - throw error + } catch { + return {} } }