fix: prefer optional chaining over logical AND guard (S6582)#3629
Conversation
Summary by CodeRabbitRelease NotesThis release contains internal code quality improvements with no user-facing changes.
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughSingle-file refactor in the contribute page that replaces an explicit logical AND guard with optional chaining when rendering the issues list, aligning with SonarCloud rule S6582. No functional logic changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3629 +/- ##
==========================================
- Coverage 85.55% 85.55% -0.01%
==========================================
Files 463 463
Lines 14303 14302 -1
Branches 1904 1903 -1
==========================================
- Hits 12237 12236 -1
Misses 1687 1687
Partials 379 379
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|



Proposed change
Resolves #3500
This PR addresses SonarCloud rule
typescript:S6582by replacing a logical AND guard with optional chaining when rendering the issues list.The change improves readability and maintainability while preserving existing behavior.
Checklist