mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:15:53 +02:00
remove the boolean vars (#4879)
This commit is contained in:
@ -1590,27 +1590,7 @@ pub fn parse_variable_expr(
|
||||
) -> (Expression, Option<ParseError>) {
|
||||
let contents = working_set.get_span_contents(span);
|
||||
|
||||
if contents == b"$true" {
|
||||
return (
|
||||
Expression {
|
||||
expr: Expr::Bool(true),
|
||||
span,
|
||||
ty: Type::Bool,
|
||||
custom_completion: None,
|
||||
},
|
||||
None,
|
||||
);
|
||||
} else if contents == b"$false" {
|
||||
return (
|
||||
Expression {
|
||||
expr: Expr::Bool(false),
|
||||
span,
|
||||
ty: Type::Bool,
|
||||
custom_completion: None,
|
||||
},
|
||||
None,
|
||||
);
|
||||
} else if contents == b"$nothing" {
|
||||
if contents == b"$nothing" {
|
||||
return (
|
||||
Expression {
|
||||
expr: Expr::Nothing,
|
||||
|
Reference in New Issue
Block a user