Skip to content

refactor: replace if-then-else flow by a single return statement#2592

Merged
WikiRik merged 1 commit intovalidatorjs:masterfrom
noritaka1166:refactor-code
Apr 1, 2026
Merged

refactor: replace if-then-else flow by a single return statement#2592
WikiRik merged 1 commit intovalidatorjs:masterfrom
noritaka1166:refactor-code

Conversation

@noritaka1166
Copy link
Copy Markdown
Contributor

replace if-then-else flow by a single return statement for better readability

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9fa1e3a) to head (d682c78).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2592   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2595      2584   -11     
  Branches       659       655    -4     
=========================================
- Hits          2595      2584   -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@WikiRik WikiRik merged commit f06caee into validatorjs:master Apr 1, 2026
12 checks passed
@noritaka1166 noritaka1166 deleted the refactor-code branch April 1, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants