From dcabb3c53d66914131eca57f51ef14365573e3eb Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Thu, 23 Jun 2022 11:27:45 +0200 Subject: [PATCH] Move variable --- lib/commands/audit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/audit.js b/lib/commands/audit.js index 4d0b6b7cd9491..89701cc0f8950 100644 --- a/lib/commands/audit.js +++ b/lib/commands/audit.js @@ -263,7 +263,6 @@ class VerifySignatures { return } const { name, version, location, registry, type } = info - const keys = this.keys.get(registry) || [] if (this.checkedPackages.has(location)) { // we already did or are doing this one return @@ -272,6 +271,7 @@ class VerifySignatures { // We only "audit" or verify the signature, or the presence of it, on // packages whose registry returns signing keys + const keys = this.keys.get(registry) || [] if (keys.length) { this.auditedWithKeysCount += 1 }