chore(cloudcmd) lint

This commit is contained in:
coderaiser 2021-12-14 14:57:40 +02:00
parent a024dcdb61
commit 5accfeeaa7
3 changed files with 12 additions and 5 deletions

View file

@ -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;