feat: optimize code
This commit is contained in:
@@ -202,11 +202,7 @@ pub fn decrypt_single(config: &Option<TinyEncryptConfig>,
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user