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
This commit is contained in:
Marshall Bowers
2025-04-02 14:50:24 +00:00
committed by GitHub
parent 0f58d4f533
commit d82bf132ca
-9
View File
@@ -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,
);
}
}