Skip to content

Conversation

@shubham-gangpuri
Copy link

🎯 Goal

Refactoring background.kt classes.

  • Removing if-else statements.
  • Using scope functions for that.
  • did formatting in data classes.

🛠 Implementation details

  • Removed unnecessary lines from data classes.
  • Used let for null checking in background.kt classes.

✍️ Explain examples

Screenshot 2024-05-13 at 17 21 37

Preparing a pull request for review

Ensure your change is properly formatted by running:

$ ./gradlew spotlessApply

Please correct any failures before requesting a review.

- Removing if-else statements.
- Using scope functions for that.
- did formatting in data classes.
@FreedomChuks
Copy link
Contributor

FreedomChuks commented May 16, 2024

@shubham-gangpuri rebase and run ./gradlew spotless the build error fix for spotless has been merged

# Conflicts:
#	core/model/src/main/kotlin/com/skydoves/pokedex/compose/core/model/Pokemon.kt
#	core/model/src/main/kotlin/com/skydoves/pokedex/compose/core/model/PokemonInfo.kt
…Refactoring_background.kt

# Conflicts:
#	core/model/src/main/kotlin/com/skydoves/pokedex/compose/core/model/PokemonInfo.kt
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