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

Cleanup python nits in Range Assignor #1805

Merged
merged 1 commit into from
May 17, 2019
Merged

Conversation

jeffwidman
Copy link
Collaborator

@jeffwidman jeffwidman commented May 14, 2019

A little Python cleanup:

  1. Remove unused variable: partitions_for_topic
  2. No need to cast to list as sorted() already returns a list
  3. Using enumerate() is cleaner than range(len()) and handles assigning
    member

This change is Reviewable

1. Remove unused variable: `partitions_for_topic`
2. No need to cast to list as `sorted()` already returns a list
3. Using enumerate is cleaner than `range(len())` and handles assigning
`member`
@jeffwidman jeffwidman changed the title Remove unused variable Cleanup python nits in Range Assignor May 17, 2019
@jeffwidman jeffwidman merged commit f854791 into master May 17, 2019
@jeffwidman jeffwidman deleted the jeffwidman-patch-1 branch May 17, 2019 19:37
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.

1 participant