From d82bf132ca0ad998e1bf39476be6a1509eae48da Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 2 Apr 2025 10:50:24 -0400 Subject: [PATCH] agent: Remove unneeded branch in `use_pending_tools` (#27922) This PR removes an unneeded `else if` branch that was the same as the previous branch in the conditional. Doesn't seem necessary to run this twice. Release Notes: - N/A --- crates/agent/src/thread.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs index de98fbf845e696ed0369eda826438af87bdbecc6..a2dd6da5d5cb32f3072b75737ad6b0c177b56ebd 100644 --- a/crates/agent/src/thread.rs +++ b/crates/agent/src/thread.rs @@ -1376,15 +1376,6 @@ impl Thread { cx, ); } - } else if let Some(tool) = self.tools.tool(&tool_use.name, cx) { - self.run_tool( - tool_use.id.clone(), - tool_use.ui_text.clone(), - tool_use.input.clone(), - &messages, - tool, - cx, - ); } }