Skip to content

Reaper: add support for Android deletion#26

Merged
trevor-e merged 11 commits intomainfrom
telkins/reaper-android
Dec 10, 2024
Merged

Reaper: add support for Android deletion#26
trevor-e merged 11 commits intomainfrom
telkins/reaper-android

Conversation

@trevor-e
Copy link
Collaborator

@trevor-e trevor-e commented Dec 9, 2024

No description provided.

private object ItemResponseSerializer :
JsonContentPolymorphicSerializer<ItemResponse>(ItemResponse::class) {
override fun selectDeserializer(element: JsonElement) = when {
element is JsonNull -> ItemResponse.NullResponse.serializer()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the ref this should delete too per our convo. Additionally some improvements could be:

  • Remove the branch here that's no longer needed
  • If the only branch, inline the default case for the when expression

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would this also need to strip the file name ((HackerNewsBaseClient.kt) in this example)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just tweaked this to handle the string better

@trevor-e trevor-e merged commit 0c7ee4e into main Dec 10, 2024
@trevor-e trevor-e deleted the telkins/reaper-android branch December 10, 2024 17:59
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

Comments