remove the boolean vars (#4879)

This commit is contained in:
JT
2022-03-20 08:12:10 +13:00
committed by GitHub
parent f3bb1d11d3
commit bd5778fa24
3 changed files with 2 additions and 32 deletions

View File

@ -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,