Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Commit

Permalink
fix: check if pluginConfig exists first
Browse files Browse the repository at this point in the history
  • Loading branch information
boennemann committed Aug 22, 2015
1 parent 300aa6f commit 9250c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function (pluginConfig, {pkg, npm, plugins, options}, cb) {
npmlog.level = npm.loglevel || 'warn'
let clientConfig = {log: npmlog}
// disable retries for tests
if (pluginConfig.retry) clientConfig.retry = pluginConfig.retry
if (pluginConfig && pluginConfig.retry) clientConfig.retry = pluginConfig.retry
const client = new RegClient(clientConfig)

client.get(`${npm.registry}${pkg.name.replace('/', '%2F')}`, {
Expand Down

0 comments on commit 9250c67

Please sign in to comment.