Skip to content

Commit a6d5f16

Browse files
authored
refactor(lib/util/read-package-json): remove unused catch binding (#849)
1 parent 9141e37 commit a6d5f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/read-package-json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('node:path')
66
function readPackageJson () {
77
try {
88
return JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')))
9-
} catch (err) {
9+
} catch {
1010
return {}
1111
}
1212
}

0 commit comments

Comments
 (0)