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

Fix no method error on decrement when output is not TTY enabled #147

Closed
wants to merge 2 commits into from

Conversation

iain-b
Copy link

@iain-b iain-b commented Aug 3, 2018

Calling decrement when the output is not TTY enabled causes a no method
error as bar_update_string returns nil where a string is expected. This
change ensures a string is returned so there is no runtime error and
adds a test case.

jfelchner and others added 2 commits February 21, 2018 08:25
Calling decrement when the output is not TTY enabled causes a no method
error as bar_update_string returns nil where a string is expected. This
change ensures a string is returned so there is no runtime error and
adds a test case.
@jfelchner
Copy link
Owner

Awesome!!!! 😄 👍 🎉

jfelchner added a commit that referenced this pull request Aug 3, 2018
Why This Change Is Necessary
========================================================================

- [x] Bug Fix
- [ ] New Feature

Calling decrement when the output is not TTY enabled causes a no method
error as `bar_update_string` returns `nil` where a string is expected.

How These Changes Address the Issue
========================================================================

This change ensures a string is returned so there is no runtime error
and adds a test case.

Side Effects Caused By This Change
========================================================================

- [ ] This Causes a Breaking Change
- [x] This Does Not Cause Any Known Side Effects

Checklist
========================================================================

- [x] I have run `rubocop` against the codebase
- [x] I have added tests to cover my changes
- [x] All new and existing tests passed

------------------------------------------------------------------------
Github Issue URLs:
  * #147
@jfelchner
Copy link
Owner

Merged in 636672c

@jfelchner jfelchner closed this Aug 3, 2018
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the outdated Inactive - Outdated label Dec 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated Inactive - Outdated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants