From 3c46f7494040ff7a09fae24d6c31e15e828c3818 Mon Sep 17 00:00:00 2001 From: Tapish Rathore Date: Sun, 13 Oct 2024 03:58:58 +0530 Subject: [PATCH] empty function calls check after trimming --- vibi-dpu/src/graph/function_call.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vibi-dpu/src/graph/function_call.rs b/vibi-dpu/src/graph/function_call.rs index 519da73f..7c6cde22 100644 --- a/vibi-dpu/src/graph/function_call.rs +++ b/vibi-dpu/src/graph/function_call.rs @@ -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); }