Skip to content

fix: resolve CodeQL redundant comparison and empty except warnings - #50

Merged
suguanYang merged 2 commits into
stagingfrom
fix/wangbinqi/codeql-issues
May 13, 2026
Merged

suguanYang merged 2 commits into
stagingfrom
fix/wangbinqi/codeql-issues

Conversation

@suguanYang

@suguanYang suguanYang commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes 3 CodeQL warnings flagged on PR #49:

  • agent_navigate.py:608 — Removed redundant depth > scope_depth from is_descendant assignment (guaranteed by earlier depth <= scope_depth + continue)
  • agent_navigate.py:633 — Removed redundant if depth > scope_depth: guard inside else branch (same reason)
  • token_estimate.py:27 — Added comment to empty except clause explaining intentional fallback to cl100k_base default encoding

@suguanYang
suguanYang force-pushed the fix/wangbinqi/codeql-issues branch from 292e178 to eca7a52 Compare May 13, 2026 10:23
asset_url was removed from the regular document chunk API responses
in PR #46. The contract test now uses file_path instead.
@suguanYang
suguanYang merged commit 86f1d47 into staging May 13, 2026
9 checks passed
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.

1 participant