more lint fixes
This commit is contained in:
parent
3e545cdaa9
commit
67c073e4f2
7 changed files with 29 additions and 15 deletions
|
|
@ -68,7 +68,10 @@ export class PostgreSQLHealthMonitor {
|
|||
if (!this.lastHealthCheck) {
|
||||
await this.performHealthCheck();
|
||||
}
|
||||
return this.lastHealthCheck!;
|
||||
if (!this.lastHealthCheck) {
|
||||
throw new Error('Health check failed to produce results');
|
||||
}
|
||||
return this.lastHealthCheck;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue