Skip to content

Commit

Permalink
Merge pull request #176 from ouch-org/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
marcospb19 authored Nov 10, 2021
2 parents 1026fa1 + 1579a48 commit 7a4dcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
// 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!(
"Partial compression detected. Compressing {} into {}",
to_utf(files[0].as_path().file_name().unwrap()),
Expand Down

0 comments on commit 7a4dcb2

Please sign in to comment.