mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 00:50:35 +00:00
`mutation_reader::is_end_of_stream()` returns `_impl->is_end_of_stream() && is_buffer_empty()`, so `!is_end_of_stream()` equals to ` `!_impl->is_end_of_stream() || !is_buffer_empty()`, which in turn always equals to `!_impl->is_end_of_stream() || !is_buffer_empty() || !is_buffer_empty()`. hence there is no need to check `rd.is_buffer_empty()` again. in this change, the redundant condition is dropped. simpler this way. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb/scylladb#21224