Fix some typos
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user