mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 10:46:42 +00:00
code cleanup: use contains()
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
2a1fb9bfdd
commit
5581858b30
@ -304,11 +304,7 @@ impl APTRepositoryFile {
|
||||
let mut infos = vec![];
|
||||
|
||||
for (n, repo) in self.repositories.iter().enumerate() {
|
||||
if !repo
|
||||
.types
|
||||
.iter()
|
||||
.any(|package_type| *package_type == APTRepositoryPackageType::Deb)
|
||||
{
|
||||
if !repo.types.contains(&APTRepositoryPackageType::Deb) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user