From e355d0f03d0cee4a4ceb6cce2604fafa656d968d Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 28 Oct 2023 17:47:38 +0800 Subject: [PATCH] feat: optimize code --- src/cmd_decrypt.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cmd_decrypt.rs b/src/cmd_decrypt.rs index bb9e752..d847bee 100644 --- a/src/cmd_decrypt.rs +++ b/src/cmd_decrypt.rs @@ -202,11 +202,7 @@ pub fn decrypt_single(config: &Option, debugging!("Inner decrypt file{}: {} elapsed: {} ms", compressed_desc, path_display, encrypt_duration.as_millis()); if cmd_decrypt.remove_file { - if do_skip_file_out { - warning!("Cannot remove encrypted file when file out is skipped."); - } else { - util::remove_file_with_msg(path); - } + util::remove_file_with_msg(path); } Ok(meta.file_length) }