mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 13:56:10 +02:00
ensure Operator::And errors out with incompatible types (#6638)
This commit is contained in:
@ -408,7 +408,7 @@ pub fn eval_expression(
|
||||
|
||||
match op {
|
||||
Operator::And => {
|
||||
if !lhs.is_true() {
|
||||
if lhs.is_false() {
|
||||
Ok(Value::Bool {
|
||||
val: false,
|
||||
span: expr.span,
|
||||
|
Reference in New Issue
Block a user