mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Remove unnecessary code change
This commit is contained in:
1 parent
de414ed631
commit
629a8968fc
1 file changed
+1
-8
+1
-8
@@ -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