-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
fix: fixes union type with discriminator in go #1967
Conversation
✅ Deploy Preview for modelina canceled.
|
Quality Gate failedFailed conditions |
if op >= CatType(len(CatTypeValues)) { | ||
return nil | ||
} | ||
return CatTypeValues[op] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think the indentation is incorrect, right? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure looks like it, but it's not related to this PR I think. I haven't touched enums
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good thing indentation is not that important in go 😄
🎉 This PR is included in version 4.0.0-next.35 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
I got some feedback after #1958 was merged. This fixes some issues with the union type with discriminator in go.
Related Issue
Checklist
npm run lint
).npm run test
).Additional Notes