mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: lint
This commit is contained in:
parent
13279299c4
commit
24dcf78be8
16 changed files with 25 additions and 26 deletions
|
|
@ -24,7 +24,7 @@ const simport = createSimport(import.meta.url);
|
|||
const choose = (a, b) => {
|
||||
if (a === undefined)
|
||||
return b;
|
||||
|
||||
|
||||
return a;
|
||||
};
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ const DIR_SERVER = '../server/';
|
|||
const maybeRoot = (a) => {
|
||||
if (a === '.')
|
||||
return process.cwd();
|
||||
|
||||
|
||||
return a;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,6 @@ async function cl() {
|
|||
function getVersionNew(last, match) {
|
||||
if (match)
|
||||
return minor(match, Info.version);
|
||||
|
||||
|
||||
return last.substr(3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue