diff options
author | Martin Cooper <mfncooper@gmail.com> | 2012-03-31 09:07:00 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-31 21:58:02 +0400 |
commit | d3320acbfcfbbf039ff794581fd820b426ac5589 (patch) | |
tree | 8e289f0992a6587488a7564b40f50ecb4a7c785a /lib/docs.js | |
parent | ef34f5bcdb04ff12b817b7a14bc1127361aa14e0 (diff) |
Don't die on an empty repo url. Fixes #2313.
Diffstat (limited to 'lib/docs.js')
-rw-r--r-- | lib/docs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/docs.js b/lib/docs.js index de9f71c65..8af4c1bb6 100644 --- a/lib/docs.js +++ b/lib/docs.js @@ -25,7 +25,7 @@ function docs (args, cb) { if (homepage) return open(homepage, cb) if (repo) { if (Array.isArray(repo)) repo = repo.shift() - if (repo.url) repo = repo.url + if (repo.hasOwnProperty("url")) repo = repo.url log.verbose(repo, "repository") if (repo) { return open(repo.replace(/^git(@|:\/\/)/, 'http://') |