fix(cli): unwrap Result from shell_quote_join call in route_check#100
fix(cli): unwrap Result from shell_quote_join call in route_check#100
Result from shell_quote_join call in route_check#100Conversation
`shell_quote_join` was changed to return `Result<String, QuoteError>` in the shlex migration, but the call site in `route_check` was not updated. The if/else branches had incompatible types (`String` vs `Result<String, QuoteError>`), causing a compile error that blocked CI. Add `?` operator to unwrap the Result, which is safe because `route_check` already returns `anyhow::Result`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary of ChangesHello @fohte, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical compilation error that arose after a change in the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
+ Coverage 89.82% 89.85% +0.02%
==========================================
Files 29 29
Lines 6142 6160 +18
==========================================
+ Hits 5517 5535 +18
Misses 625 625
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Why
shell_quote_joinreturn type was changed toResult<String, QuoteError>, but the call site inroute_checkwas not updated to unwrap it, causing a type mismatch compile error in the if/else branchesWhat
?operator to theshell_quote_joincall to properly unwrap theResult