Skip to content

Commit

Permalink
fix: prefer const in getAuth function
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 4, 2019
1 parent e64702e commit 90ac7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.js
Expand Up @@ -7,7 +7,7 @@ module.exports = getAuth
function getAuth (registry, opts) {
if (!registry) { throw new Error('registry is required') }
opts = config(opts)
let AUTH = {}
const AUTH = {}
const regKey = registry && registryKey(registry)
if (opts.forceAuth) {
opts = opts.forceAuth
Expand Down

0 comments on commit 90ac7b1

Please sign in to comment.