Skip to content

Commit

Permalink
empty function calls check after trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
tapishr committed Oct 12, 2024
1 parent ad5b4a0 commit 3c46f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vibi-dpu/src/graph/function_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ impl FunctionCallIdentifier {
return None;
}
let mut func_calls: FunctionCallsOutput = deserialized_response.expect("Empty error in deserialized_response");
func_calls.trim_empty_function_calls();
if func_calls.function_calls().is_empty() {
return None;
}
func_calls.trim_empty_function_calls();
return Some(func_calls);
}

Expand Down

0 comments on commit 3c46f74

Please sign in to comment.