Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unreacheable 404 #3350

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

steve-chavez
Copy link
Member

No description provided.

Comment on lines -229 to -232
_ ->
-- This is unreachable as the ApiRequest.hs rejects it before
-- TODO Refactor the Action/Target types to remove this line
throwError $ Error.ApiRequestError ApiRequestTypes.NotFound
Copy link
Member Author

@steve-chavez steve-chavez Mar 25, 2024

Choose a reason for hiding this comment

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

This is the main gain.

The new Resource types are good too IMO, since they follow REST conventions.

@steve-chavez steve-chavez merged commit a5bb20b into PostgREST:main Mar 25, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant