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

Clean protobuf related code #17591

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Clean protobuf related code #17591

merged 2 commits into from
Dec 13, 2024

Conversation

Arthur-Milchior
Copy link
Member

While touching code related to card's protobuf, I saw the use the code that is too verbose and decided to improve it

Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

Looks good! Minor issues on the first commit. Second commit is sound

custom = customOrdering

is SortOrder.BuiltinSortKind ->
builtin = toProtoBuf()
Copy link
Member

Choose a reason for hiding this comment

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

This one needs a second look. It's correct, but the usage of an overloaded this rather than a this@ leads to confusion

While looking at the `Card` code, I decided to go over all
`newBuilder`, and slightly improve the code everywhere.
Many `this` are now useless
@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Dec 13, 2024
Copy link
Member

@lukstbit lukstbit left a comment

Choose a reason for hiding this comment

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

Looks better, thanks!

@lukstbit lukstbit added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Second Approval Has one approval, one more approval to merge labels Dec 13, 2024
@lukstbit lukstbit added this pull request to the merge queue Dec 13, 2024
Merged via the queue into ankidroid:main with commit f4da4ad Dec 13, 2024
9 checks passed
@github-actions github-actions bot added this to the 2.21 release milestone Dec 13, 2024
@github-actions github-actions bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Dec 13, 2024
@Arthur-Milchior Arthur-Milchior deleted the builder branch December 14, 2024 01:52
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.

3 participants