8000 Collapse duplicated error code 3506 by jez · Pull Request #5652 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dismiss alert

Collapse duplicated error code 3506 #5652

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

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Collapse duplicated error code 3506 #5652

merged 2 commits into from
Apr 19, 2022

Conversation

jez
Copy link
Collaborator
@jez jez commented Apr 19, 2022

Motivation

It looks like were reusing an error code. I considered making these into
two separate error codes, but we're actually using
--suppress-error-code=3506 inside Sorbet, so I figured that splitting
it into two error codes could potentially break something and I didn't
want to have to deal with that on the off chance it happens.

Luckily the two error codes were basically doing the same thing
(T::Enum rewriter syntax) so I figured I'd just use the same
ErrorClass for both.

Test plan

n/a

@jez jez requested a review from a team as a code owner April 19, 2022 03:12
@jez jez requested review from elliottt and removed request for a team April 19, 2022 03:12
jez added 2 commits April 18, 2022 20:55
It looks like were reusing an error code. I considered making these into
two separate error codes, but we're actually using
`--suppress-error-code=3506` inside Sorbet, so I figured that splitting
it into two error codes could potentially break something and I didn't
want to have to deal with that on the off chance it happens.

Luckily the two error codes were basically doing the same thing
(`T::Enum` rewriter syntax) so I figured I'd just use the same
ErrorClass for both.
@jez
Copy link
Collaborator Author
jez commented Apr 19, 2022

Screen Shot 2022-04-18 at 9 02 53 PM

Screen Shot 2022-04-18 at 8 36 22 PM

@jez jez enabled auto-merge (squash) April 19, 2022 04:03
@jez jez merged commit fb10a41 into master Apr 19, 2022
@jez jez deleted the jez-3506 branch April 19, 2022 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5AF7
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0