Drop the empty else in the XOBJ_DTYPE_SOURCE branch - #1690
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideSimplifies XOBJ_DTYPE_SOURCE cleaning by removing an else branch that assigned the value to itself, with no behavioral change. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes a no-op ChangesSource variable cleanup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized cleanup removes redundant code without changing the intended variable-cleaning behavior, so no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



In
XoopsModelWrite::cleanVarstheXOBJ_DTYPE_SOURCEbranch ends its GPC handling with anelsewhose only statement is$cleanv = $cleanv;, so the branch does nothing at all.The case right below it, which has the same
stripSlashesGPCguard and no second transformation to apply, is already written without theelse, so dropping it here lines the two up. The cases that do keep anelse, like the censored-string ones above, have something real to do in it.Summary by Sourcery
Enhancements:
Summary by CodeRabbit