From 90ac7b16bc77aba82607f2cc6b09ffb988d0a191 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 2 Oct 2019 11:06:57 -0700 Subject: [PATCH] fix: prefer const in getAuth function --- auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.js b/auth.js index d583982d..b8cb4ba1 100644 --- a/auth.js +++ b/auth.js @@ -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