From 190c8598e6feec01ea062021b6e09df0f9c8ad9c Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 27 Mar 2021 06:59:52 +0100
Subject: [PATCH] fix(npm): reset npmrc no matter what

---
 lib/datasource/npm/npmrc.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/datasource/npm/npmrc.ts b/lib/datasource/npm/npmrc.ts
index ca83c7c17c..41179ec1ac 100644
--- a/lib/datasource/npm/npmrc.ts
+++ b/lib/datasource/npm/npmrc.ts
@@ -87,8 +87,7 @@ export function setNpmrc(input?: string): void {
       npmrc[key] = envReplace(npmrc[key]);
       sanitize(key, npmrc[key]);
     }
-  } else if (npmrc) {
-    logger.debug('Resetting npmrc');
+  } else {
     npmrc = null;
     npmrcRaw = null;
   }
-- 
GitLab