Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-types: Skip over invalid sigrefs
✓ CI success Lorenz Leutgeb committed 2 months ago
commit d9300c5cb9075953ad2b0e59343cc9644ece452c
parent cd9e0be8a3d49095a9d7fb287164966faff260b6
1 passed (1 total) View logs
1 file changed +2 -2
modified crates/radicle-types/src/traits/repo.rs
@@ -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;
            }
        }