Skip to content

Commit

Permalink
refactor(lib/util/read-package-json): remove unused catch binding (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 5, 2025
1 parent 9141e37 commit a6d5f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/read-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('node:path')
function readPackageJson () {
try {
return JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')))
} catch (err) {
} catch {
return {}
}
}
Expand Down

0 comments on commit a6d5f16

Please sign in to comment.