mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user