Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Use `unwrap_or` to avoid constructing default
Lorenz Leutgeb committed 7 months ago
commit 7a6cd1220ddbc771e59c17ab07cc671f6d6d38d7
parent 714313fd5bf626d0753617337a247fb4ef9a36c7
1 file changed +1 -1
modified crates/radicle-cli/src/commands/issue.rs
@@ -45,7 +45,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    // with the [`EmptyArgs`] provided, if any.
    let command = args
        .command
-
        .unwrap_or(Command::List(args.empty.unwrap_or_default().into()));
+
        .unwrap_or_else(|| Command::List(args.empty.unwrap_or_default().into()));

    let announce = !args.no_announce && command.should_announce_for();
    let mut issues = term::cob::issues_mut(&profile, &repo)?;