-
Notifications
You must be signed in to change notification settings - Fork 4
Remove unreachable else block in get_mod function #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: ypriverol <[email protected]>
Co-authored-by: ypriverol <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
Addresses review feedback on #59 about unreachable code in
get_mod. Theelseblock was dead code sincediann_mod_accessionis guaranteed non-None when reached (function exits earlier if modification not found).Changes
elif diann_mod_accession is not Nonecheckelseblock with duplicate error handling*.parquetto.gitignoreto prevent test artifacts from being committedBefore
After
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
PR Type
Bug fix
Description
Removed unreachable else block in
get_modfunctionSimplified control flow by eliminating redundant conditional checks
Code is guaranteed to reach site processing after initial validation
Diagram Walkthrough
File Walkthrough
dianncfg.py
Remove unreachable else block in get_modquantmsutils/diann/dianncfg.py
elif diann_mod_accession is not Noneconditionelseblock with duplicate error handlingvalidation