Fix some typos

This commit is contained in:
Girish Ramakrishnan
2020-08-19 22:40:04 -07:00
parent 81d0637483
commit 2d50f10fd6
3 changed files with 24 additions and 29 deletions

View File

@@ -7,7 +7,8 @@ exports = module.exports = {
resetUpdateInfo,
resetAppUpdateInfo,
_setUpdateInfo: setUpdateInfo
_setUpdateInfo: setUpdateInfo,
_checkAppUpdates: checkAppUpdates
};
var apps = require('./apps.js'),
@@ -71,7 +72,7 @@ function checkAppUpdates(options, callback) {
var oldState = loadState();
var newState = { }; // create new state so that old app ids are removed
settings.getAppAutoupdatePattern(function (error, result) {
settings.getAutoupdatePattern(function (error, result) {
if (error) return callback(error);
const autoupdatesEnabled = (result !== constants.AUTOUPDATE_PATTERN_NEVER);
@@ -175,13 +176,13 @@ function checkForUpdates(options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
checkBoxUpdates(options, function (error) {
if (error) debug('checkForUpdates: error checking for box updates:', error);
checkBoxUpdates(options, function (boxError) {
if (boxError) debug('checkForUpdates: error checking for box updates:', boxError);
checkAppUpdates(options, function (error) {
if (error) debug('checkForUpdates: error checking for app updates:', error);
checkAppUpdates(options, function (appError) {
if (appError) debug('checkForUpdates: error checking for app updates:', appError);
callback();
callback(boxError || appError || null);
});
});