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

Avoid warnings with empty list of things #448

Merged
merged 2 commits into from
Oct 7, 2019
Merged

Avoid warnings with empty list of things #448

merged 2 commits into from
Oct 7, 2019

Conversation

jhrcek
Copy link
Contributor

@jhrcek jhrcek commented Oct 7, 2019

Description of the change

Fix for #447

Force user to provide nonempty list of things to warn about to avoid printing nonsensical warnings.
While I was at it I also applied the same strategy to another warning-creating function which was expecting list of things.

Checklist:

  • Added the change to the "Unreleased" section of the changelog
  • Added some example of the new feature to the README
  • Added a test for the contribution (if applicable)

probably not worth adding to the changelog as this bug was introduced in another PR which is in the changelog. Also didn't add a test for this, as this is the kind of fix based on "making impossible states impossible" strategy / using types to prevent errors.

@jhrcek jhrcek requested a review from f-f October 7, 2019 09:30
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