diff --git a/src/index.ts b/src/index.ts index 6dc2a0c..7646a39 100644 --- a/src/index.ts +++ b/src/index.ts @@ -141,11 +141,9 @@ export default class Config { } public openJson(file: string) { - const path = this.getFile(file); - let json; try { - json = fs.readFileSync(path, "utf8"); + json = fs.readFileSync(file, "utf8"); json = JSON.parse(json); } catch (e) { if (e.code === "ENOENT") return;