Use const for util require

This commit is contained in:
Kevin Sawicki 2016-02-03 11:00:34 -08:00
parent 6617592224
commit 7da4c3acf7

View file

@ -3,12 +3,13 @@
const app = require('electron').app; const app = require('electron').app;
const EventEmitter = require('events').EventEmitter; const EventEmitter = require('events').EventEmitter;
const squirrelUpdate = require('./squirrel-update-win'); const squirrelUpdate = require('./squirrel-update-win');
const util = require('util');
function AutoUpdater() { function AutoUpdater() {
EventEmitter.call(this); EventEmitter.call(this);
} }
require('util').inherits(AutoUpdater, EventEmitter); util.inherits(AutoUpdater, EventEmitter);
AutoUpdater.prototype.quitAndInstall = function() { AutoUpdater.prototype.quitAndInstall = function() {
squirrelUpdate.processStart(); squirrelUpdate.processStart();