mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
Refactor FetchCertificates.ts to improve code readability
This commit is contained in:
parent
9c9195e4c1
commit
b581981815
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user