Skip to content

Commit

Permalink
refactor: replace one let with const in src/constats.ts
Browse files Browse the repository at this point in the history
Reported by SonarCloud
  • Loading branch information
SpraxDev committed Aug 30, 2024
1 parent 1edd999 commit e5eeffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getAppInfo(): Readonly<AppInfo> {
const packageJsonPath = Path.join(APP_ROOT_DIR, 'package.json');
if (Fs.existsSync(packageJsonPath)) {
const packageJson = Fs.readFileSync(packageJsonPath, { encoding: 'utf-8' });
let parsedPackageJson = JSON.parse(packageJson);
const parsedPackageJson = JSON.parse(packageJson);

const parsedName = parsedPackageJson.name;
if (typeof parsedName == 'string') {
Expand Down

0 comments on commit e5eeffa

Please sign in to comment.