mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
Don't fail if we can't open the database
We make sure that even if there is no database file, we're still able to return `None` for the alias lookup.
This commit is contained in:
@@ -65,7 +65,7 @@ pub fn run(
|
||||
is_me.then(by_rev_time).then(by_id)
|
||||
});
|
||||
|
||||
let aliases = profile.aliases()?;
|
||||
let aliases = profile.aliases();
|
||||
|
||||
let mut errors = Vec::new();
|
||||
for (id, patch) in &mut all {
|
||||
@@ -132,7 +132,7 @@ pub fn timeline(
|
||||
patch: &Patch,
|
||||
repository: &Repository,
|
||||
) -> anyhow::Result<Vec<term::Line>> {
|
||||
let aliases = profile.aliases()?;
|
||||
let aliases = profile.aliases();
|
||||
let alias = aliases.alias(patch.author().id());
|
||||
let open = term::Line::spaced([
|
||||
term::format::positive("●").into(),
|
||||
|
||||
Reference in New Issue
Block a user