Skip to content

Commit f488165

Browse files
feelepxyzwraithgar
authored andcommitted
Move variable
1 parent 815bf7b commit f488165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/audit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ class VerifySignatures {
263263
return
264264
}
265265
const { name, version, location, registry, type } = info
266-
const keys = this.keys.get(registry) || []
267266
if (this.checkedPackages.has(location)) {
268267
// we already did or are doing this one
269268
return
@@ -272,6 +271,7 @@ class VerifySignatures {
272271

273272
// We only "audit" or verify the signature, or the presence of it, on
274273
// packages whose registry returns signing keys
274+
const keys = this.keys.get(registry) || []
275275
if (keys.length) {
276276
this.auditedWithKeysCount += 1
277277
}

0 commit comments

Comments
 (0)