mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 10:21:06 +05:30
style: run prettier formatter over src and tests
This commit is contained in:
@@ -18,7 +18,8 @@ class UpdaterService extends EventEmitter {
|
||||
au.on('update-downloaded', (info) => this._emit({ state: 'ready', version: info.version }));
|
||||
au.on('update-not-available', () => this._emit({ state: 'idle' }));
|
||||
au.on('error', (err) => {
|
||||
const code = err && /ENOTFOUND|ETIMEDOUT|ECONNREFUSED/.test(err.message) ? 'NETWORK' : 'UNKNOWN';
|
||||
const code =
|
||||
err && /ENOTFOUND|ETIMEDOUT|ECONNREFUSED/.test(err.message) ? 'NETWORK' : 'UNKNOWN';
|
||||
this._emit({ state: 'error', code });
|
||||
});
|
||||
}
|
||||
@@ -39,4 +40,4 @@ class UpdaterService extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { UpdaterService };
|
||||
module.exports = { UpdaterService };
|
||||
|
||||
Reference in New Issue
Block a user