Skip to content

Commit

Permalink
Remove empty check as it is not done in wasm rpc code
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj committed Jul 4, 2024
1 parent a5d6d34 commit 3ba77ea
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ impl RefinedWorkerResponse {
let result = &worker_response.result.result;
let function_result_types = &worker_response.result.function_result_types;

if function_result_types.iter().all(|r| r.name.is_none())
&& !function_result_types.is_empty()
{
if function_result_types.iter().all(|r| r.name.is_none()) {
match result {
TypeAnnotatedValue::Tuple { value, .. } => {
if value.len() == 1 {
Expand Down

0 comments on commit 3ba77ea

Please sign in to comment.