Skip to content

Commit 5ace072

Browse files
committed
fix: fixup after rebase on master
- fixup after manual cherry-pick of commits to be able to rebase on master Signed-off-by: Michael Dawson <[email protected]>
1 parent 4d3fc76 commit 5ace072

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/cli/commands/validate.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ module.exports = function (opts) {
1515
},
1616
handler: async function (argv) {
1717
let userPackageJson
18-
let packageJsonPath
1918
try {
20-
const jsonFile = path.join(process.cwd(), 'package.json')
21-
packageJsonPath = path.dirname(jsonFile)
22-
userPackageJson = await fs.readJSON(jsonFile)
19+
userPackageJson = await fs.readJSON(path.join(process.cwd(), 'package.json'))
2320
} catch (error) {
2421
argv.log.error(error)
2522
return

0 commit comments

Comments
 (0)