mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-15 15:20:33 +01:00
Remove unnecessary scope
This commit is contained in:
parent
e30e1bab2e
commit
da09f3877b
@ -84,7 +84,6 @@ impl<'b> Controller<'b> {
|
||||
let mut line_number: usize = 1;
|
||||
|
||||
while reader.read_until(b'\n', &mut line_buffer)? > 0 {
|
||||
{
|
||||
match line_ranges {
|
||||
&Some(ref range) => {
|
||||
if line_number < range.lower {
|
||||
@ -104,7 +103,6 @@ impl<'b> Controller<'b> {
|
||||
}
|
||||
|
||||
line_number += 1;
|
||||
}
|
||||
line_buffer.clear();
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user