Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth committed Jul 12, 2023
1 parent 46974a4 commit 6680bcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/realm/scripts/submit-analytics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ function getProjectRoot() {
* @returns package.json as a JavaScript object
*/
function getPackageJson(packagePath) {
const packageJson = path.resolve(packagePath, "package.json");
const buffer = fs.readFileSync(packageJson, "utf-8");
return JSON.parse(buffer);
const packageJsonPath = path.resolve(packagePath, "package.json");
const packageJson = fs.readFileSync(packageJsonPath, "utf-8");
return JSON.parse(packageJson);
}

/**
Expand Down

0 comments on commit 6680bcb

Please sign in to comment.