*Remove getFile call

This commit is contained in:
Derrick Hammer 2022-09-21 17:16:38 -04:00
parent 1c3eeb3004
commit e49ce56cb8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -141,11 +141,9 @@ export default class Config {
} }
public openJson(file: string) { public openJson(file: string) {
const path = this.getFile(file);
let json; let json;
try { try {
json = fs.readFileSync(path, "utf8"); json = fs.readFileSync(file, "utf8");
json = JSON.parse(json); json = JSON.parse(json);
} catch (e) { } catch (e) {
if (e.code === "ENOENT") return; if (e.code === "ENOENT") return;