Code cleanup (#3131)
This commit is contained in:
parent
28bd31a125
commit
58affc53dc
5 changed files with 5 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue