Skip to content

Commit 1ed6f06

Browse files
committed
Removed unneeded ok_or
1 parent be1168e commit 1ed6f06

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

primitives/src/targeting/eval.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,11 @@ fn eval(input: &Input, output: &mut Output, rule: &Rule) -> Result<Option<Value>
213213
.ok_or(Error::TypeError)?;
214214
let product_rule = Rule::Value(product);
215215
let boxed_rule = Box::new(product_rule);
216-
let value = eval(
216+
eval(
217217
input,
218218
output,
219219
&Rule::Function(Function::Div(boxed_rule, third_rule.clone())),
220220
)?
221-
.ok_or(Error::TypeError)?;
222-
223-
Some(value)
224221
}
225222
Function::Div(first_rule, second_rule) => {
226223
let first_eval = first_rule.eval(input, output)?.ok_or(Error::TypeError)?;

0 commit comments

Comments
 (0)