LearnNewsExamplesConnect
Frontmatter
assigneestobiu
createdAtOct 17, 2025, 2:19 PM
updatedAtOct 17, 2025, 2:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/7527
authortobiu
commentsCount0
parentIssue7520
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 17, 2025, 2:23 PM

Refactor Health Service to Remove Redundant Try/Catch

tobiu
tobiu commented on Oct 17, 2025, 2:19 PM

The buildHealthResponse function in healthService.mjs contains two inner try...catch blocks that are redundant. The empty catch blocks obscure the logic. This ticket is to remove them for clarity.

Acceptance Criteria

  1. The buildHealthResponse function in healthService.mjs is updated.
  2. The two inner try...catch blocks are removed.
  3. The logic remains correct: if a collection doesn't exist, its exists flag is correctly reported as false and its count as 0.