Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async checkCertificate(certificate: Certificate | null): Promise {
if (!certificate) {
return StatusCodes.Good;
}
if (!this.certificateManager) {
return checkCertificateValidity(certificate);
}
return await this.certificateManager.checkCertificate(certificate);
}