mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudcmd) readConfig: else -> return
This commit is contained in:
parent
88ab57eba7
commit
8bca529bd3
1 changed files with 5 additions and 5 deletions
|
|
@ -161,11 +161,11 @@ function readConfig(name) {
|
|||
});
|
||||
|
||||
if (error)
|
||||
exit(error.message);
|
||||
else
|
||||
Object.keys(data).forEach((item) => {
|
||||
config(item, data[item]);
|
||||
});
|
||||
return exit(error.message);
|
||||
|
||||
Object.keys(data).forEach((item) => {
|
||||
config(item, data[item]);
|
||||
});
|
||||
}
|
||||
|
||||
function help() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue