We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 593c525 commit 6ac42c1Copy full SHA for 6ac42c1
1 file changed
src/main/java/com/iemr/admin/service/health/HealthService.java
@@ -336,7 +336,7 @@ private boolean performAdvancedMySQLChecksWithThrottle() {
336
} catch (Exception e) {
337
logger.debug("Failed to get connection for advanced checks: {}", e.getMessage());
338
// Return cached result or false if no cache
339
- return cachedAdvancedCheckResult != null ? cachedAdvancedCheckResult.isDegraded : false;
+ return cachedAdvancedCheckResult != null && cachedAdvancedCheckResult.isDegraded;
340
} finally {
341
advancedCheckLock.writeLock().unlock();
342
}
0 commit comments