Remove pointless seek

This commit is contained in:
Sasha Koshka 2024-10-09 21:45:55 -04:00
parent 24a81a9d88
commit a2543ef78e

View File

@ -102,7 +102,6 @@ fn seek_to_nth_last_line(file: io::handle, number: int) (void | io::error) = {
case let length: size => yield length;
case io::EOF => break;
};
io::seek(file, current, io::whence::SET)?;
// look for line breaks in that chunk
let buffer = buffer[..length];