mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
chore: lint
This commit is contained in:
parent
f1279666b5
commit
4717e035ee
173 changed files with 1388 additions and 1627 deletions
|
|
@ -8,16 +8,16 @@ const up = (a) => a.toUpperCase();
|
|||
module.exports = parse;
|
||||
module.exports.bool = (name) => {
|
||||
const value = parse(name);
|
||||
|
||||
|
||||
if (value === 'true')
|
||||
return true;
|
||||
|
||||
|
||||
if (value === '1')
|
||||
return true;
|
||||
|
||||
|
||||
if (value === 'false')
|
||||
return false;
|
||||
|
||||
|
||||
if (value === '0')
|
||||
return false;
|
||||
};
|
||||
|
|
@ -28,4 +28,3 @@ function parse(name) {
|
|||
|
||||
return env[big] || env[small];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue