feat: udpate code

This commit is contained in:
2023-10-15 17:18:06 +08:00
parent bae6ca828d
commit dda040a1b3

View File

@@ -137,9 +137,7 @@ impl TinyEncryptConfig {
}
}
let mut envelops: Vec<_> = matched_envelops_map.values()
.copied()
.collect();
let mut envelops: Vec<_> = matched_envelops_map.values().copied().collect();
if envelops.is_empty() {
return simple_error!("Profile or key filter cannot find valid envelopes");
}