radicle-types: Skip over invalid sigrefs

`radicle::storage::RepositoryInfo` now contains the result of loading
signed references, not just an `Option`. Skip over errors.
This commit is contained in:
Lorenz Leutgeb
2026-03-21 18:55:31 +01:00
parent cd9e0be8a3
commit d9300c5cb9
+2 -2
View File
@@ -41,7 +41,7 @@ pub trait Repo: Profile {
let mut entries = Vec::new();
for RepositoryInfo { rid, doc, refs, .. } in repos {
if refs.is_none() && show == Show::Contributor {
if refs.is_ok() && show == Show::Contributor {
continue;
}
@@ -124,7 +124,7 @@ pub trait Repo: Profile {
delegate += 1;
}
if refs.is_some() {
if refs.is_ok() {
contributor += 1;
}
}