diff --git a/app/lib/files.js b/app/lib/files.js index 7713c205de..ed7ba3792e 100644 --- a/app/lib/files.js +++ b/app/lib/files.js @@ -157,7 +157,7 @@ var files = module.exports = { if (path.existsSync(filepath)) { var data = fs.readFileSync(filepath, 'utf8'); var lines = data.split(/\n/); - if (_.any(lines, function (x) { return x === entry })) { + if (_.any(lines, function (x) { return x === entry; })) { // already there do nothing } else { // rewrite file w/ new entry. diff --git a/app/lib/updater.js b/app/lib/updater.js index 6598f41da7..89425fde68 100644 --- a/app/lib/updater.js +++ b/app/lib/updater.js @@ -54,4 +54,4 @@ exports.needs_upgrade = function (version) { if (!version) return false; return semver.lt(exports.CURRENT_VERSION, version); -} +};