Skip to content

Commit

Permalink
fix const reassignment
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 17, 2023
1 parent 5f2c6ea commit 769e86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function getNpmLicenses() {
const defaultPackagePath = `${package['dir']}/node_modules/${package.name}/package.json`;

const itemAtPath = jetpack.exists(defaultPackagePath);
const packagePath = [defaultPackagePath];
let packagePath = [defaultPackagePath];

if (itemAtPath !== 'file') {
packagePath = jetpack.find(package['dir'], {
Expand Down

0 comments on commit 769e86e

Please sign in to comment.