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
907afc6e4a
commit
ddd1722f39
7 changed files with 24 additions and 31 deletions
|
|
@ -17,11 +17,11 @@ process.on('unhandledRejection', exit);
|
|||
const require = createRequire(import.meta.url);
|
||||
|
||||
const Info = require('../package.json');
|
||||
|
||||
const isUndefined = (a) => typeof a === 'undefined';
|
||||
const simport = createSimport(import.meta.url);
|
||||
|
||||
const choose = (a, b) => {
|
||||
if (a === undefined)
|
||||
if (isUndefined(a))
|
||||
return b;
|
||||
|
||||
return a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue