Skip to content

fix: Make Channel::Close predicates return booleans#85

Merged
michaelklishin merged 1 commit intoruby-amqp:mainfrom
eglitobias:fix-return-alwys-bool-value
Mar 31, 2026
Merged

fix: Make Channel::Close predicates return booleans#85
michaelklishin merged 1 commit intoruby-amqp:mainfrom
eglitobias:fix-return-alwys-bool-value

Conversation

@eglitobias
Copy link
Copy Markdown
Contributor

Summary

Make AMQ::Protocol::Channel::Close predicate methods return real booleans.

Why

These methods currently return regex match offsets (for example 22) on success instead of true, which is truthy but not a boolean.

@michaelklishin michaelklishin added this to the 2.6.1 milestone Mar 31, 2026
@michaelklishin michaelklishin merged commit e98c2e3 into ruby-amqp:main Mar 31, 2026
3 checks passed
@michaelklishin
Copy link
Copy Markdown
Member

Thank you!

@michaelklishin michaelklishin modified the milestones: 2.6.1, 2.7.0 Mar 31, 2026
michaelklishin added a commit that referenced this pull request Mar 31, 2026
@eglitobias eglitobias deleted the fix-return-alwys-bool-value branch April 8, 2026 18:33
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.

3 participants