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

Move mergeRecordStats in printStats an indentation up #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Freso
Copy link

@Freso Freso commented Aug 29, 2018

This leads to two minor improvements:

  1. The helper variables are listed in the same place, which makes relevant code be more together:
    • The assignments are next to each other.
    • The print() calls under the with open() are listed together.
  2. mergeRecordStats should be called for every iteration of the for plugin loop; moving it out of the with open() should make this ever so slightly more robust.

This leads to two minor improvements:
1) The helper variables are listed in the same place, which makes
   relevant code be more together:
   - The assignments are next to each other.
   - The `print()` calls under the `with open()` are listed together.
2) `mergeRecordStats` should be called for every iteration of the
   `for plugin` loop; moving it out of the `with open()` should make
   this ever so slightly more robust.
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