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

Addressed Rubocop concerns from PR 29 #31

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

Narnach
Copy link
Contributor

@Narnach Narnach commented Sep 28, 2022

Rubocop checks in PR #29 did not fire, so small style issues were not discovered until an attempted release. This corrects them, making Rubocop pass. Tests also still pass on my machine.

  • GTIN module was 31 lines (max 30), so I inlined a guard clause
  • Use of redundant self. was removed
  • (In a test) prefer __send__ over send when public_send is not an option

Rubocop checks in PR marketplacer#29 did not fire, so issues were not discovered
until release. This corrects them, making Rubocop and tests pass.

- GTIN module was 31 lines (max 30), so I inlined a guard clause
- Use of redundant `self.` was removed
- Prefer `__send__` over `send` when `public_send` is not an option
Copy link
Contributor

@beet beet left a comment

Choose a reason for hiding this comment

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

Thanks, and sorry about this. Rubocop is a contentious issue...

@beet beet merged commit a9a5e2c into marketplacer:main Sep 29, 2022
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