diff --git a/src/splash/index.js b/src/splash/index.js index d15b28e..90693ad 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -204,13 +204,13 @@ const initOld = () => { // "Old" (not v2 / new, win32 only) installs.record(name, '', cur, total); }); - const segmentCallback = (tracker) => (({ name }) => { + const segment = (tracker) => (({ name }) => { tracker.record(name, 'Complete'); if (name === 'host') moduleUpdater.quitAndInstallUpdates(); }); - on('downloaded-module', segmentCallback(downloads)); - on('installed-module', segmentCallback(installs)); + on('downloaded-module', segment(downloads)); + on('installed-module', segment(installs)); on('installing-modules-finished', check);