Skip to content

Commit

Permalink
change(#179): break config retrieval on invalid JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Sep 5, 2024
1 parent 209eaff commit bc70a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const config = ((): Config => {
if (!fs.existsSync(cp)) continue;
try {
config = JSON.parse(fs.readFileSync(cp, 'utf8'));
break;
} catch {}
break;
}

// revert to default config if no config found
Expand Down

0 comments on commit bc70a8c

Please sign in to comment.