From e49ce56cb81499d875080a49a6a227820efbd69e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 17:16:38 -0400 Subject: [PATCH] *Remove getFile call --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;