From 045ed5d72eb1976a0e5ec81b95a84c6252fbe68c Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 6 Feb 2023 12:59:16 -0500 Subject: [PATCH] make mime sniffing consistent for list and decompress --- src/commands/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 483ec25..0c9fd05 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -129,10 +129,10 @@ pub fn run( output_paths.push(file_output_path); formats.push(file_formats); } - } - if let ControlFlow::Break(_) = check::check_mime_type(&files, &mut formats, question_policy)? { - return Ok(()); + if let ControlFlow::Break(_) = check::check_mime_type(&files, &mut formats, question_policy)? { + return Ok(()); + } } check::check_missing_formats_when_decompressing(&files, &formats)?;