mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-14 08:03:48 -05:00
refactor: remove unneeded match that can be replaced by if let
This commit is contained in:
@@ -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()
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user