*Remove getFile call
This commit is contained in:
parent
1c3eeb3004
commit
e49ce56cb8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue