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 10:50:24 -04:00 committed by GitHub
parent 0f58d4f533
commit d82bf132ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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