feat: optimize code

This commit is contained in:
2023-12-10 14:37:26 +08:00
parent e7a9877cad
commit 26c5a25759
2 changed files with 3 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ pub fn info_single(path: &PathBuf, cmd_info: &CmdInfo, config: &Option<TinyEncry
envelops.iter().enumerate().for_each(|(i, envelop)| {
infos.push(format!("{}: {}",
header(&format!("Envelop #{}", i + 1)),
util_envelop::format_envelop(envelop, &config)
util_envelop::format_envelop(envelop, config)
));
util_msg::when_debug(|| {
if let Ok(wrap_key) = WrapKey::parse(&envelop.encrypted_key) {