Skip to content

Commit 9c68060

Browse files
committed
use single quotes
1 parent c17b724 commit 9c68060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ export async function getCertificate(
4545
const cachePath = path.join(cacheDir, '_cert.pem')
4646

4747
try {
48-
const content = await fsp.readFile(cachePath, "utf8")
48+
const content = await fsp.readFile(cachePath, 'utf8')
4949
const certContent = content.match(
5050
/-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----/,
5151
)
5252
if (!certContent) {
53-
throw new Error("certificate not detected.")
53+
throw new Error('certificate not detected.')
5454
}
5555

5656
const cert = forge.pki.certificateFromPem(certContent[0])
5757

5858
if (new Date() > cert.validity.notAfter) {
59-
throw new Error("cache is outdated.")
59+
throw new Error('cache is outdated.')
6060
}
6161

6262
return content

0 commit comments

Comments
 (0)