Code cleanup (#3131)

This commit is contained in:
Prashant Andani 2018-10-13 20:05:51 +05:30 committed by CHaBou
parent 28bd31a125
commit 58affc53dc
5 changed files with 5 additions and 6 deletions

View file

@ -93,7 +93,7 @@ if (isDev) {
//eslint-disable-next-line no-console
console.log('running in dev mode');
// Overide default appVersion which is set from package.json
// Override default appVersion which is set from package.json
gitDescribe({customArguments: ['--tags']}, (error, gitInfo) => {
if (!error) {
app.setVersion(gitInfo.raw);

View file

@ -71,7 +71,7 @@ module.exports = class Window {
// app.windowCallback is the createWindow callback
// that can be set before the 'ready' app event
// and createWindow deifinition. It's executed in place of
// and createWindow definition. It's executed in place of
// the callback passed as parameter, and deleted right after.
(app.windowCallback || fn)(window);
delete app.windowCallback;

View file

@ -6,7 +6,6 @@ const retry = require('async-retry');
// Utilities
// eslint-disable-next-line no-unused-vars
const notify = require('./notify');
const {version} = require('./package');
const {getDecoratedConfig} = require('./plugins');

View file

@ -117,6 +117,6 @@ exports.installCLI = withNotification => {
});
} else {
withNotification &&
notify('Hyper CLI instalation', 'Command is added in PATH only at package installation. Please reinstall.');
notify('Hyper CLI installation', 'Command is added in PATH only at package installation. Please reinstall.');
}
};