Skip to content

Simplify HttpError #1954

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

Closed
wants to merge 1 commit into from
Closed

Simplify HttpError #1954

wants to merge 1 commit into from

Conversation

greyscaled
Copy link
Contributor

This change is cosmetic (issue not linked due to being extremely minor). As part of reading the codebase for the first time, I noticed details is not used anywhere.

  • Remove public keyword - public by default
  • Remove details - this was unused throughout the entire codebase

This change is cosmetic

* Remove public keyword - public by default
* Remove details - this was unused throughout the entire codebase
@greyscaled greyscaled requested a review from code-asher August 9, 2020 02:57
@greyscaled greyscaled requested a review from nhooyr as a code owner August 9, 2020 02:57
@code-asher
Copy link
Member

Ah, this actually exists so plugins can add details if they throw errors. It's true none of the code in code-server itself uses it (although maybe it should if there is a spot where some extra details could be useful).

@greyscaled
Copy link
Contributor Author

Wasn't aware, am now - TY @code-asher

@greyscaled greyscaled closed this Aug 10, 2020
@code-asher
Copy link
Member

We should probably create an explicit file with the types we want to export rather than just exporting everything so we know what's safe to change.

@nhooyr nhooyr deleted the httperr branch August 28, 2020 20:28
@nhooyr nhooyr restored the httperr branch August 28, 2020 20:30
@nhooyr nhooyr deleted the httperr branch January 7, 2021 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants