mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
a024dcdb61
commit
5accfeeaa7
3 changed files with 12 additions and 5 deletions
|
|
@ -25,6 +25,8 @@ const toggleVim = (keyCode) => {
|
|||
}
|
||||
};
|
||||
|
||||
const isUndefined = (a) => typeof a === 'undefined';
|
||||
|
||||
Chars([]);
|
||||
|
||||
const {assign} = Object;
|
||||
|
|
@ -61,7 +63,7 @@ async function listener(event) {
|
|||
|
||||
// strange chrome bug calles listener twice
|
||||
// in second time event misses a lot fields
|
||||
if (typeof event.altKey === 'undefined')
|
||||
if (isUndefined(event.altKey))
|
||||
return;
|
||||
|
||||
const alt = event.altKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue