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. 3
      utils/listFile.js

3
utils/listFile.js

@ -25,8 +25,6 @@ function appendToList(domain, outPort, inPort) {
}
}
jsonFile = {}
if (fs.existsSync(listFilePath)) {
jsonFile = fs.readFileSync(listFilePath);
jsonFile = JSON.parse(jsonFile);
@ -42,7 +40,6 @@ function appendToList(domain, outPort, inPort) {
jsonFile = beautifyJSON(jsonFile, null, 2, 30);
}
else {
jsonFile = {}
jsonFile[domain] = domBlock;
jsonFile = beautifyJSON(jsonFile);
}

Loading…
Cancel
Save