Skip to content

refactor(core): remove redundant hasPendingToolUse check in doCall#1162

Open
xichaodong wants to merge 1 commit intoagentscope-ai:mainfrom
xichaodong:main
Open

refactor(core): remove redundant hasPendingToolUse check in doCall#1162
xichaodong wants to merge 1 commit intoagentscope-ai:mainfrom
xichaodong:main

Conversation

@xichaodong
Copy link
Copy Markdown

The check at line 275 is always true because the early return at line 268 already guarantees pendingIds is non-empty at that point. Simplify to call acting(0) directly.

@xichaodong xichaodong requested a review from a team April 8, 2026 12:14
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 8, 2026

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The check at line 275 is always true because the early return at
line 268 already guarantees pendingIds is non-empty at that point.
Simplify to call acting(0) directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants