agent: Remove unneeded branch in `use_pending_tools` (#27922)

Marshall Bowers created

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

Change summary

crates/agent/src/thread.rs | 9 ---------
1 file changed, 9 deletions(-)

Detailed changes

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,
-                );
             }
         }