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
de15ed6766
commit
444f659076
5 changed files with 8 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ function CloudCmdProto(DOM) {
|
|||
if (file && !current) {
|
||||
const msg = formatMsg('set current file', file, 'error');
|
||||
CloudCmd.log(msg);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ module.exports = function setCurrentByChar(char, charStore) {
|
|||
if (!skipCount) {
|
||||
setted = true;
|
||||
DOM.setCurrentFile(byName);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ module.exports = (options) => (emitter) => {
|
|||
listeners.end(error);
|
||||
Dialog.alert(error);
|
||||
progress.remove();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ function onGET(params, config, callback) {
|
|||
if (cmd.startsWith('pack')) {
|
||||
cmd = cmd.replace(/^pack/, '');
|
||||
streamPack(root(cmd, rootDir), p.response, packer);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue