Don't intialize unused variable

This commit is contained in:
Charles Sharma 2022-07-16 14:32:00 -06:00
parent 0722c8cda7
commit 570795b832

View File

@ -1,6 +1,6 @@
let fs = require("fs"); let fs = require("fs");
function loadDB(databaseFile) { function loadDB(databaseFile) {
let _db, db; let _db;
if (fs.existsSync(databaseFile)) { if (fs.existsSync(databaseFile)) {
_db = JSON.parse(fs.readFileSync(databaseFile, "utf8")); _db = JSON.parse(fs.readFileSync(databaseFile, "utf8"));
} else { } else {