diff --git a/utils/listFile.js b/utils/listFile.js index 814ec2a..c278460 100644 --- a/utils/listFile.js +++ b/utils/listFile.js @@ -27,8 +27,6 @@ function appendToList(domain, outPort, inPort) { "inPort": inPort } } - - jsonFile = {} if (fs.existsSync(listFilePath)) { jsonFile = fs.readFileSync(listFilePath); @@ -45,7 +43,6 @@ function appendToList(domain, outPort, inPort) { jsonFile = beautifyJSON(jsonFile, null, 2, 30); } else { - jsonFile = {} jsonFile[domain] = domBlock; jsonFile = beautifyJSON(jsonFile); }