mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-23 01:50:14 +00:00
commit
7a4dcb2074
@ -137,7 +137,7 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> {
|
|||||||
// We checked above that input_extensions isn't empty, so files[0] has an extension.
|
// We checked above that input_extensions isn't empty, so files[0] has an extension.
|
||||||
//
|
//
|
||||||
// Path::extension says: "if there is no file_name, then there is no extension".
|
// Path::extension says: "if there is no file_name, then there is no extension".
|
||||||
// Using DeMorgan's law: "if there is extension, then there is file_name".
|
// Contrapositive statement: "if there is extension, then there is file_name".
|
||||||
info!(
|
info!(
|
||||||
"Partial compression detected. Compressing {} into {}",
|
"Partial compression detected. Compressing {} into {}",
|
||||||
to_utf(files[0].as_path().file_name().unwrap()),
|
to_utf(files[0].as_path().file_name().unwrap()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user