Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-07 22:30:57 +0400
committerisaacs <i@izs.me>2010-08-07 22:30:57 +0400
commit52ed908c87d6645ac2e86b6b88c7e540f20f05f6 (patch)
tree6a95f371b29d57a4188f042fd6edf5462c298365 /lib/adduser.js
parent2fafad96f0a1ec3ec587b5f8a6c67485f5853db9 (diff)
Handle stdin/exiting a little more gracefully.
Diffstat (limited to 'lib/adduser.js')
-rw-r--r--lib/adduser.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/adduser.js b/lib/adduser.js
index 35e27af71..a554e7d8f 100644
--- a/lib/adduser.js
+++ b/lib/adduser.js
@@ -20,11 +20,10 @@ function adduser (args, cb) {
if (!crypto) return cb(new Error(
"You must compile node with ssl support to use the adduser feature"))
- var u =
- { u : npm.config.get("username")
- , p : npm.config.get("_password")
- , e : npm.config.get("email")
- }
+ var u = { u : npm.config.get("username")
+ , p : npm.config.get("_password")
+ , e : npm.config.get("email")
+ }
, changed = false
promiseChain(cb)