Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: simplify for loops to for...of in Server.js #5496

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

noritaka1166
Copy link

@noritaka1166 noritaka1166 commented May 15, 2025

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

no

Motivation / Use-Case

simplify for loops to for...of in Server.js

Breaking Changes

no

Additional Info

no

for (let i = 0; i < printableErrors.length; i++) {
log.error(printableErrors[i]);
for (const printableError of printableErrors) {
log.error(printableError);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not touch this file because it can be used in very old browsers

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-akait
Ok, I've reverted the index.js fix.

@noritaka1166 noritaka1166 changed the title refactor: simplify for loops to for...of in index.js and Server.js refactor: simplify for loops to for...of in Server.js May 15, 2025
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 83.37%. Comparing base (af6bd68) to head (9cc0c5a).
Report is 127 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5496      +/-   ##
==========================================
- Coverage   90.29%   83.37%   -6.93%     
==========================================
  Files          15       13       -2     
  Lines        1577     2027     +450     
  Branches      601      745     +144     
==========================================
+ Hits         1424     1690     +266     
- Misses        140      303     +163     
- Partials       13       34      +21     

β˜” 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.

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.

2 participants