We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0d24cc commit e259220Copy full SHA for e259220
1 file changed
src/config.ts
@@ -33,11 +33,8 @@ export async function readConfig(): Promise<CodeburnConfig> {
33
try {
34
const raw = await readFile(getConfigPath(), 'utf-8')
35
return JSON.parse(raw) as CodeburnConfig
36
- } catch (error) {
37
- if ((error as NodeJS.ErrnoException).code === 'ENOENT') {
38
- return {}
39
- }
40
- throw error
+ } catch {
+ return {}
41
}
42
43
0 commit comments