diff --git a/sled-agent/src/storage_manager.rs b/sled-agent/src/storage_manager.rs index 8e23fc8929..75df7ffeb6 100644 --- a/sled-agent/src/storage_manager.rs +++ b/sled-agent/src/storage_manager.rs @@ -230,11 +230,9 @@ impl StorageResources { disks .values() .filter_map(|disk| { - if let DiskWrapper::Real { disk, .. } = disk { - if disk.variant() == variant { - return Some(disk.zpool_name().clone()); - } - }; + if disk.variant() == variant { + return Some(disk.zpool_name().clone()); + } None }) .collect()