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

unparsed_args removed from tagger.py #2127

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

skelly37
Copy link
Contributor

@skelly37 skelly37 commented Jul 1, 2022

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Since the variable wasn't used anywhere (wasn't even stored as Tagger's attribute), I'd suggest to remove it, unless you have some reason to still keep it there.

Problem

Unused variable returned, stored and passed to the Tagger's constructor just to be left untouched

  • JIRA ticket (optional): None

Solution

I've safely removed all the unparsed_args's ocurrences.

Since the variable wasn't used anywhere (wasn't even stored as `Tagger`'s attribute), I'd suggest to remove it, unless you have some reason to still keep it there.
@skelly37
Copy link
Contributor Author

skelly37 commented Jul 1, 2022

The issue has already been discussed in my GSoC PR and since the single-instance-mode is getting final polishing, there's more time for smaller and greater refactoring :)

picard/tagger.py Fixed Show fixed Hide fixed
picard/tagger.py Fixed Show fixed Hide fixed
@zas zas requested a review from phw July 1, 2022 12:56
@phw phw merged commit a204b52 into metabrainz:master Jul 4, 2022
@skelly37 skelly37 deleted the remove-unused-args branch July 4, 2022 06:12
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.

3 participants