From b581981815b7dde95bbfda9f3893029fb0f84f99 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 4 Mar 2024 18:21:35 +0000 Subject: [PATCH] Refactor FetchCertificates.ts to improve code readability --- Nginx/Jobs/FetchCertificates.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Nginx/Jobs/FetchCertificates.ts b/Nginx/Jobs/FetchCertificates.ts index 6430eee3af..2205620269 100644 --- a/Nginx/Jobs/FetchCertificates.ts +++ b/Nginx/Jobs/FetchCertificates.ts @@ -56,9 +56,9 @@ export default class Jobs { continue; } - const key: string = JSONFunctions.parseJSONObject(cert.blob || '{}')[ - 'privateKeyPem' - ] as string; + const key: string = JSONFunctions.parseJSONObject( + cert.blob || '{}' + )['privateKeyPem'] as string; let crt: string = JSONFunctions.parseJSONObject( certBlob.blob || '{}' )['cert'] as string; @@ -70,9 +70,9 @@ export default class Jobs { ) { crt += ('\n' + '\n' + - JSONFunctions.parseJSONObject(certBlob.blob || '{}')[ - 'chain' - ]) as string; + JSONFunctions.parseJSONObject( + certBlob.blob || '{}' + )['chain']) as string; } // Need to make sure StatusPageCerts dir exists.