Skip to content

Commit 8696581

Browse files
committed
Revert formatting
1 parent c75f001 commit 8696581

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/registry.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,16 @@ class RegistryFetcher extends Fetcher {
172172
this.registryKeys.filter(key => (key.keyid === signature.keyid))[0]
173173
if (!publicKey) {
174174
throw Object.assign(new Error(
175-
`${mani._id} has a registry signature with keyid: ${signature.keyid} ` +
176-
`but no corresponding public key can be found`
175+
`${mani._id} has a registry signature with keyid: ${signature.keyid} ` +
176+
'but no corresponding public key can be found'
177177
), { code: 'EMISSINGSIGNATUREKEY' })
178178
}
179179
const validPublicKey =
180180
!publicKey.expires || (Date.parse(publicKey.expires) > Date.now())
181181
if (!validPublicKey) {
182182
throw Object.assign(new Error(
183-
`${mani._id} has a registry signature with keyid: ${signature.keyid} ` +
184-
`but the corresponding public key ` +
185-
`has expired ${publicKey.expires}`
183+
`${mani._id} has a registry signature with keyid: ${signature.keyid} ` +
184+
`but the corresponding public key has expired ${publicKey.expires}`
186185
), { code: 'EEXPIREDSIGNATUREKEY' })
187186
}
188187
const verifier = crypto.createVerify('SHA256')
@@ -195,8 +194,8 @@ class RegistryFetcher extends Fetcher {
195194
)
196195
if (!valid) {
197196
throw Object.assign(new Error(
198-
`${mani._id} has an invalid registry signature with ` +
199-
`keyid: ${publicKey.keyid} and signature: ${signature.sig}`
197+
`${mani._id} has an invalid registry signature with ` +
198+
`keyid: ${publicKey.keyid} and signature: ${signature.sig}`
200199
), {
201200
code: 'EINTEGRITYSIGNATURE',
202201
keyid: publicKey.keyid,

0 commit comments

Comments
 (0)