Skip to content

Commit

Permalink
Use proper pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj committed Apr 2, 2024
1 parent 481aa94 commit 149eb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golem-worker-service-base/src/evaluator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ mod tests {
);

let expr = Expr::from_primitive_string(
"${match worker.response { ok(value) => ok(1), none => err(2) }}",
"${match worker.response { ok(value) => ok(1), err(msg) => err(2) }}",
)
.unwrap();
let result = expr.evaluate(&worker_response.result_with_worker_response_key());
Expand Down

0 comments on commit 149eb88

Please sign in to comment.