Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

fix: remove redundant try catch - #53

Merged
joshsny merged 2 commits into
mainfrom
api-refactor/2
Jul 22, 2025
Merged

fix: remove redundant try catch#53
joshsny merged 2 commits into
mainfrom
api-refactor/2

Conversation

@joshsny

@joshsny joshsny commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

This was meant to make it into the last one

@joshsny
joshsny requested review from Copilot and jonathanlab and removed request for Copilot July 22, 2025 11:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes a redundant try-catch block that was wrapping error response parsing logic without providing meaningful error handling. The try-catch was silently swallowing any JSON parsing errors and proceeding to the generic error throw regardless.

  • Removes unnecessary try-catch wrapper around error response JSON parsing
  • Simplifies error handling flow by allowing JSON parsing errors to propagate naturally

Comment thread src/api/client.ts

@jonathanlab jonathanlab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@joshsny
joshsny merged commit f4f24cb into main Jul 22, 2025
4 checks passed
@joshsny
joshsny deleted the api-refactor/2 branch July 22, 2025 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants