Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
adduser: Default all fields to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 25, 2013
1 parent a211b73 commit fba4bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/adduser.js
Expand Up @@ -18,9 +18,9 @@ function adduser (args, cb) {
if (!crypto) return cb(new Error(
"You must compile node with ssl support to use the adduser feature"))

var c = { u : npm.config.get("username")
, p : npm.config.get("_password")
, e : npm.config.get("email")
var c = { u : npm.config.get("username") || ""
, p : npm.config.get("_password") || ""
, e : npm.config.get("email") || ""
}
, changed = false
, u = {}
Expand Down

0 comments on commit fba4bd2

Please sign in to comment.