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

Replaced if/else with switch in ErrorActivity #6109

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

sauravrao637
Copy link
Contributor

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

-Replaced if/else with switch

Due diligence

@Redirion
Copy link
Member

Thank you. But the lint warning is still shown, isn't it? Please add https://stackoverflow.com/questions/7840914/android-resource-ids-suddenly-not-final-switches-broken/64377108#64377108 here

lintOptions {

When it removes the warning, please add this to this PR as well with a small comment there why it was added e.g. // removes a warning that would only affect library projects

@XiangRongLin XiangRongLin added the codequality Improvements to the codebase to improve the code quality label Apr 19, 2021
Copy link
Member

@Redirion Redirion left a comment

Choose a reason for hiding this comment

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

Looking good! Thank you

@Redirion Redirion merged commit 0039312 into TeamNewPipe:dev Apr 19, 2021
@sauravrao637 sauravrao637 deleted the codeImrovement branch April 19, 2021 14:54
This was referenced May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants