Browse Source

Removed redundant initialization

pull/3/head
Muthu Kumar 7 years ago
committed by GitHub
parent
commit
38d72b1229
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      utils/listFile.js

5
utils/listFile.js

@ -24,8 +24,6 @@ function appendToList(domain, outPort, inPort) {
"inPort": inPort
}
}
jsonFile = {}
if (fs.existsSync(listFilePath)) {
jsonFile = fs.readFileSync(listFilePath);
@ -42,7 +40,6 @@ function appendToList(domain, outPort, inPort) {
jsonFile = beautifyJSON(jsonFile, null, 2, 30);
}
else {
jsonFile = {}
jsonFile[domain] = domBlock;
jsonFile = beautifyJSON(jsonFile);
}
@ -50,4 +47,4 @@ function appendToList(domain, outPort, inPort) {
}
module.exports = appendToList;
module.exports = appendToList;

Loading…
Cancel
Save