chore(cloudcmd) lint: keyword spacing

This commit is contained in:
coderaiser 2019-03-28 16:52:55 +02:00
parent e32e3ff47d
commit 5f53da58e7
4 changed files with 6 additions and 6 deletions

View file

@ -94,7 +94,7 @@ function KeyProto() {
}
function getSymbol(shift, keyCode) {
switch (keyCode) {
switch(keyCode) {
case KEY.DOT:
return '.';
@ -143,7 +143,7 @@ function KeyProto() {
next = current.nextSibling;
}
switch (keyCode) {
switch(keyCode) {
case Key.TAB:
DOM.changePanel();
event.preventDefault();

View file

@ -17,7 +17,7 @@ module.exports = function setCurrentByChar(char, charStore) {
const chars = charStore();
const n = chars.length;
while(i < n && char === chars[i])
while (i < n && char === chars[i])
i++;
if (!i)

View file

@ -275,7 +275,7 @@ function onDblClick(event) {
});
event.preventDefault();
}else{
} else {
CloudCmd.View.show();
event.preventDefault();
@ -297,7 +297,7 @@ function onTouch(event) {
path: DOM.getCurrentPath(current),
});
}else{
} else {
CloudCmd.View.show();
}
}

View file

@ -246,7 +246,7 @@ function onNameChange(name) {
}
function onKey({keyCode, target}) {
switch (keyCode) {
switch(keyCode) {
case Key.ESC:
return hide();