m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-14 16:13:48 -05:00

refactor: remove unneeded match that can be replaced by if let

This commit is contained in:
Sergio
2025-05-28 18:52:33 +03:00
parent ddd514ffa0
commit adbd999c14

View File

@@ -107,9 +107,8 @@ pub async fn get_updates(
// Complete in_use field
images.iter_mut().for_each(|image| {
match in_use_images.get(&image.reference) {
Some(images) => image.used_by = images.clone(),
None => {}
if let Some(images) = in_use_images.get(&image.reference) {
image.used_by = images.clone()
}
});