Skip to content

Commit

Permalink
Update configPath initialization to use HOME_PATH in Loz class
Browse files Browse the repository at this point in the history
Initialize the configPath variable in the Loz class constructor to use
the HOME_PATH environment variable for better consistency and
readability.

Generated by gpt-3.5-turbo
  • Loading branch information
joone committed Feb 24, 2024
1 parent b5090ed commit e422d7d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ export class Loz {
frequency_penalty: 0.0,
presence_penalty: 0.0,
};
this.configPath = "";
this.configPath = path.join(HOME_PATH, ".loz");
}

async init() {
// Create a config for the application
this.configPath = path.join(HOME_PATH, ".loz");
if (!fs.existsSync(this.configPath)) {
fs.mkdirSync(this.configPath);
}
Expand Down

0 comments on commit e422d7d

Please sign in to comment.