Skip to content

fix: prefer optional chaining over logical AND guards (S6582)#3485

Merged
kasya merged 2 commits into
OWASP:mainfrom
anukalp2804:fix/sonar-s6582-optional-chaining
Jan 23, 2026
Merged

fix: prefer optional chaining over logical AND guards (S6582)#3485
kasya merged 2 commits into
OWASP:mainfrom
anukalp2804:fix/sonar-s6582-optional-chaining

Run make check

2ec2776
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 23, 2026 in 0s

85.60% (-0.01%) compared to 7484604

View this Pull Request on Codecov

85.60% (-0.01%) compared to 7484604

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.60%. Comparing base (7484604) to head (2ec2776).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3485      +/-   ##
==========================================
- Coverage   85.60%   85.60%   -0.01%     
==========================================
  Files         461      461              
  Lines       14222    14221       -1     
  Branches     1894     1892       -2     
==========================================
- Hits        12175    12174       -1     
  Misses       1678     1678              
  Partials      369      369              
Files with missing lines Coverage Δ
frontend/src/app/chapters/page.tsx 96.87% <100.00%> (ø)
frontend/src/app/committees/page.tsx 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7484604...2ec2776. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.