removed '$' last variable as it doesn't work
This commit is contained in:
parent
ded7ed55b0
commit
400f535469
1 changed files with 0 additions and 2 deletions
|
@ -85,8 +85,6 @@ fn main() {
|
||||||
fn eval(expression: &str, context: &mut HashMapContext, quiet: bool) {
|
fn eval(expression: &str, context: &mut HashMapContext, quiet: bool) {
|
||||||
let result = eval_with_context_mut(expression, context);
|
let result = eval_with_context_mut(expression, context);
|
||||||
|
|
||||||
if let Ok(ref result) = result { context.set_value("$".to_owned(), result.clone()).ok(); }
|
|
||||||
|
|
||||||
if quiet {
|
if quiet {
|
||||||
if let Ok(result) = result { println!("{result}") }
|
if let Ok(result) = result { println!("{result}") }
|
||||||
else { exit(1) }
|
else { exit(1) }
|
||||||
|
|
Loading…
Reference in a new issue