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

Commit 9250c67

Browse files
committed
fix: check if pluginConfig exists first
1 parent 300aa6f commit 9250c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function (pluginConfig, {pkg, npm, plugins, options}, cb) {
77
npmlog.level = npm.loglevel || 'warn'
88
let clientConfig = {log: npmlog}
99
// disable retries for tests
10-
if (pluginConfig.retry) clientConfig.retry = pluginConfig.retry
10+
if (pluginConfig && pluginConfig.retry) clientConfig.retry = pluginConfig.retry
1111
const client = new RegClient(clientConfig)
1212

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

0 commit comments

Comments
 (0)