don't print nil in output
This commit is contained in:
@@ -20,6 +20,7 @@ pub async fn eval(ctx: Context<'_>,
|
|||||||
let x = acc.unwrap();
|
let x = acc.unwrap();
|
||||||
|
|
||||||
match v {
|
match v {
|
||||||
|
Ok(lamm::Value::Nil) => Ok(x),
|
||||||
Ok(v) => Ok(format!("{x}\n{v}")),
|
Ok(v) => Ok(format!("{x}\n{v}")),
|
||||||
Err(e) => Err(e),
|
Err(e) => Err(e),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user