mirror of
https://github.com/ION606/ion-cli.git
synced 2026-05-14 22:16:56 +00:00
Removed useless code
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ const __dirname = dirname(__filename);
|
||||
|
||||
|
||||
export function getJSON(key) {
|
||||
const p = path.resolve(__dirname, "../config.json");
|
||||
const p = path.resolve(__dirname, "../ionconfig.json");
|
||||
if (fs.existsSync(p)) {
|
||||
const data = fs.readFileSync(p, 'utf8');
|
||||
|
||||
@@ -23,7 +23,7 @@ export function getJSON(key) {
|
||||
|
||||
export function setJSON(key, val) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const p = path.resolve(__dirname, "../config.json");
|
||||
const p = path.resolve(__dirname, "../ionconfig.json");
|
||||
const data = fs.readFileSync(p, 'utf8');
|
||||
|
||||
var obj = JSON.parse(data); //now it an object
|
||||
|
||||
Reference in New Issue
Block a user