Remove lint errors
This commit is contained in:
parent
c842ca1f12
commit
6617592224
1 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ const EventEmitter = require('events').EventEmitter;
|
||||||
const squirrelUpdate = require('./squirrel-update-win');
|
const squirrelUpdate = require('./squirrel-update-win');
|
||||||
|
|
||||||
function AutoUpdater() {
|
function AutoUpdater() {
|
||||||
EventEmitter.call(this)
|
EventEmitter.call(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
require('util').inherits(AutoUpdater, EventEmitter);
|
require('util').inherits(AutoUpdater, EventEmitter);
|
||||||
|
@ -13,11 +13,11 @@ require('util').inherits(AutoUpdater, EventEmitter);
|
||||||
AutoUpdater.prototype.quitAndInstall = function() {
|
AutoUpdater.prototype.quitAndInstall = function() {
|
||||||
squirrelUpdate.processStart();
|
squirrelUpdate.processStart();
|
||||||
return app.quit();
|
return app.quit();
|
||||||
}
|
};
|
||||||
|
|
||||||
AutoUpdater.prototype.setFeedURL = function(updateURL) {
|
AutoUpdater.prototype.setFeedURL = function(updateURL) {
|
||||||
return this.updateURL = updateURL;
|
return this.updateURL = updateURL;
|
||||||
}
|
};
|
||||||
|
|
||||||
AutoUpdater.prototype.checkForUpdates = function() {
|
AutoUpdater.prototype.checkForUpdates = function() {
|
||||||
if (!this.updateURL) {
|
if (!this.updateURL) {
|
||||||
|
@ -51,12 +51,12 @@ AutoUpdater.prototype.checkForUpdates = function() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
})(this));
|
})(this));
|
||||||
}
|
};
|
||||||
|
|
||||||
// Private: Emit both error object and message, this is to keep compatibility
|
// Private: Emit both error object and message, this is to keep compatibility
|
||||||
// with Old APIs.
|
// with Old APIs.
|
||||||
AutoUpdater.prototype.emitError = (message) {
|
AutoUpdater.prototype.emitError = function(message) {
|
||||||
return this.emit('error', new Error(message), message);
|
return this.emit('error', new Error(message), message);
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = new AutoUpdater;
|
module.exports = new AutoUpdater;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue