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

Let IRB::Color.colorable? always return true|false #940

Merged
merged 1 commit into from
May 1, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented May 1, 2024

IRB::Color.colorable? is used in exc.full_message(order:, highlight: HERE) and hightlight requires boolean or nil value.

When it is used for full_message, IRB::Color.colorable? always returns boolean value, but looking at the code, it was not obvious. It looks like there is a chance to return an integer value.

@st0012 st0012 added the bug Something isn't working label May 1, 2024
@st0012 st0012 merged commit 0bbe435 into ruby:master May 1, 2024
30 checks passed
@tompng tompng deleted the bool_colorable branch May 1, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants