mirror of
https://github.com/sharkdp/bat.git
synced 2026-02-08 00:32:08 +00:00
Remove unnecessary code change
This commit is contained in:
@@ -151,7 +151,7 @@ impl Printer for SimplePrinter<'_> {
|
|||||||
self.config.nonprintable_notation,
|
self.config.nonprintable_notation,
|
||||||
);
|
);
|
||||||
write!(handle, "{line}")?;
|
write!(handle, "{line}")?;
|
||||||
} else if self.config.binary == BinaryBehavior::AsText {
|
} else {
|
||||||
match handle {
|
match handle {
|
||||||
OutputHandle::IoWrite(handle) => handle.write_all(line_buffer)?,
|
OutputHandle::IoWrite(handle) => handle.write_all(line_buffer)?,
|
||||||
OutputHandle::FmtWrite(handle) => {
|
OutputHandle::FmtWrite(handle) => {
|
||||||
@@ -165,13 +165,6 @@ impl Printer for SimplePrinter<'_> {
|
|||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
match handle {
|
|
||||||
OutputHandle::IoWrite(handle) => handle.write_all(line_buffer)?,
|
|
||||||
OutputHandle::FmtWrite(handle) => {
|
|
||||||
write!(handle, "{}", String::from_utf8_lossy(line_buffer))?;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user