-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: 'getLikes' async function in 'involvementAPI.ts'
- Removed unnecessary try-catch block in the `getLikes` function. Instead, if the response is not ok, the function now throws an error class with the response `statusText` as the message. This refactor improves the clarity and efficiency of error handling.
- Loading branch information
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters