Skip to content

Commit

Permalink
Move variable
Browse files Browse the repository at this point in the history
  • Loading branch information
feelepxyz authored and wraithgar committed Jun 23, 2022
1 parent 05f2ccd commit dcabb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit dcabb3c

Please sign in to comment.