chore(cloudcmd) lint

This commit is contained in:
coderaiser 2022-07-20 20:16:22 +03:00
parent de15ed6766
commit 444f659076
5 changed files with 8 additions and 0 deletions

View file

@ -182,6 +182,7 @@ function CloudCmdProto(DOM) {
if (file && !current) {
const msg = formatMsg('set current file', file, 'error');
CloudCmd.log(msg);
return;
}

View file

@ -37,6 +37,7 @@ module.exports = function setCurrentByChar(char, charStore) {
if (!skipCount) {
setted = true;
DOM.setCurrentFile(byName);
return true;
}

View file

@ -44,6 +44,7 @@ module.exports = (key, operations) => {
if (key === 'Escape') {
visual(false);
escape();
return end();
}
@ -97,6 +98,7 @@ module.exports = (key, operations) => {
if (key === 'd' && (visual() || prevStore === 'd')) {
stopVisual();
remove();
return end();
}
@ -115,6 +117,7 @@ module.exports = (key, operations) => {
stopVisual();
copy();
return end();
}
@ -126,6 +129,7 @@ module.exports = (key, operations) => {
if (/^v$/i.test(key)) {
visual(!visual());
select();
return end();
}

View file

@ -68,6 +68,7 @@ module.exports = (options) => (emitter) => {
listeners.end(error);
Dialog.alert(error);
progress.remove();
return;
}