mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudcmd) port: early return
This commit is contained in:
parent
6ccb4f0be1
commit
84f775620f
1 changed files with 3 additions and 3 deletions
|
|
@ -166,9 +166,9 @@ function port(arg) {
|
|||
const number = parseInt(arg, 10);
|
||||
|
||||
if (!isNaN(number))
|
||||
config('port', number);
|
||||
else
|
||||
exit('cloudcmd --port: should be a number');
|
||||
return config('port', number);
|
||||
|
||||
exit('cloudcmd --port: should be a number');
|
||||
}
|
||||
|
||||
function showConfig() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue