Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/terminal: remove unused parameter
Fintan Halpenny committed 6 months ago
commit 1c0e6077a1025a9f6ac7820f21dc0208dee208c7
parent 6d30792a73070b273cc8dba79aad5e83278e2771
1 file changed +2 -2
modified crates/radicle-cli/src/terminal.rs
@@ -47,7 +47,7 @@ where
        Ok(()) => process::exit(0),
        Err(err) => {
            // First parameter is not used and can just be empty.
-
            fail("", &err);
+
            fail(&err);
            process::exit(1);
        }
    }
@@ -75,7 +75,7 @@ impl Context for DefaultContext {
    }
}

-
pub fn fail(_name: &str, error: &anyhow::Error) {
+
pub fn fail(error: &anyhow::Error) {
    let err = error.to_string();
    let err = err.trim_end();