"removing redundant match block"
This commit is contained in:
parent
50ef22308e
commit
c5ce675792
|
@ -63,8 +63,6 @@ fn compute_with_value(
|
||||||
op: Span,
|
op: Span,
|
||||||
right: &Value,
|
right: &Value,
|
||||||
) -> Result<Value, ShellError> {
|
) -> Result<Value, ShellError> {
|
||||||
match right {
|
|
||||||
Value::Custom { .. } => {
|
|
||||||
let rhs = NuExpression::try_from_value(plugin, right)?;
|
let rhs = NuExpression::try_from_value(plugin, right)?;
|
||||||
with_operator(
|
with_operator(
|
||||||
(plugin, engine),
|
(plugin, engine),
|
||||||
|
@ -75,20 +73,6 @@ fn compute_with_value(
|
||||||
right.span(),
|
right.span(),
|
||||||
op,
|
op,
|
||||||
)
|
)
|
||||||
}
|
|
||||||
_ => {
|
|
||||||
let rhs = NuExpression::try_from_value(plugin, right)?;
|
|
||||||
with_operator(
|
|
||||||
(plugin, engine),
|
|
||||||
operator,
|
|
||||||
left,
|
|
||||||
&rhs,
|
|
||||||
lhs_span,
|
|
||||||
right.span(),
|
|
||||||
op,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn with_operator(
|
fn with_operator(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user