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>2012-08-07 06:01:21 +0400
committerisaacs <i@izs.me>2012-08-07 06:01:21 +0400
commita1d5df4e334e8adeb06d230c90bdbe9f47b42256 (patch)
treed4bd9c06fef85d55d0ac83e18c0593cfeca4fb05
parent9cb4f734bf4ec93a43ee6f0e7560d641d4c2b4c1 (diff)
publish: Remove extraneous 'readme' arg
-rw-r--r--lib/publish.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/publish.js b/lib/publish.js
index bc8a6b575..1c103f7e5 100644
--- a/lib/publish.js
+++ b/lib/publish.js
@@ -80,9 +80,8 @@ function publish_ (arg, data, isRetry, cachedir, cb) {
}
function regPublish (data, isRetry, arg, cachedir, cb) {
- // check to see if there's a README.md in there.
var tarball = cachedir + ".tgz"
- registry.publish(data, tarball, data.readme, function (er) {
+ registry.publish(data, tarball, function (er) {
if (er && er.code === "EPUBLISHCONFLICT"
&& npm.config.get("force") && !isRetry) {
log.warn("publish", "Forced publish over "+data._id)