crystal
crystal copied to clipboard
Make `IO::Buffered#buffer_size=` idempotent
The purpose of raising an exception here is to prevent the caller from doing something unsafe. Changing the value is unsafe, but setting buffer_size to the same value is a safe operation.
Fixes #11270