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

Refactoring background.kt classes. #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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