Skip to content
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

refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() #5855

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

irbull
Copy link
Contributor

@irbull irbull commented Aug 28, 2024

…nstead of throw

To ensure consistency across the codebase, this commit refactors the codebase to use throw new Error instead of throw for throwing errors.

#5854

…nstead of `throw`

To ensure consistency across the codebase, this commit refactors the
codebase to use `throw new Error` instead of `throw` for throwing
errors.

denoland#5854
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 24.00000% with 19 lines in your changes missing coverage. Please review.

Project coverage is 96.26%. Comparing base (a55ee9c) to head (4a33452).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
datetime/_date_time_formatter.ts 17.64% 14 Missing ⚠️
io/buf_reader.ts 0.00% 2 Missing ⚠️
io/buffer.ts 0.00% 2 Missing ⚠️
fmt/printf.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5855   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files         479      479           
  Lines       38738    38738           
  Branches     5618     5618           
=======================================
  Hits        37292    37292           
  Misses       1403     1403           
  Partials       43       43           

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

@iuioiua iuioiua changed the title refactor(assert, datetime, fmt, io, streams): use throw new Error i… refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() Aug 28, 2024
Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Great! Thank you.

@iuioiua iuioiua merged commit 3b3a761 into denoland:main Aug 28, 2024
17 checks passed
@iuioiua
Copy link
Contributor

iuioiua commented Aug 28, 2024

Does this close #5854?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants