-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Clean protobuf related code #17591
Conversation
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.
Looks good! Minor issues on the first commit. Second commit is sound
custom = customOrdering | ||
|
||
is SortOrder.BuiltinSortKind -> | ||
builtin = toProtoBuf() |
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.
This one needs a second look. It's correct, but the usage of an overloaded this
rather than a this@
leads to confusion
AnkiDroid/src/test/java/com/ichi2/anki/BackupManagerSimpleTest.kt
Outdated
Show resolved
Hide resolved
07641ae
to
c2fe016
Compare
While looking at the `Card` code, I decided to go over all `newBuilder`, and slightly improve the code everywhere.
Many `this` are now useless
c2fe016
to
6c45dab
Compare
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.
Looks better, thanks!
While touching code related to card's protobuf, I saw the use the code that is too verbose and decided to improve it