Simplify test

This commit is contained in:
Victor Zverovich
2023-12-23 06:53:25 -08:00
parent 968fb9d166
commit 56d7a8c157
2 changed files with 27 additions and 23 deletions

View File

@ -234,6 +234,7 @@ class file_scan_buffer : public scan_buffer {
void consume() override {
// Consume the current buffer content.
// TODO: do it more efficiently
for (size_t i = 0, n = file_.buffer().size(); i != n; ++i) file_.get();
fill();
}