-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
assert: remove dead code #58760
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
assert: remove dead code #58760
Conversation
@@ -199,7 +198,7 @@ function getErrMessage(message, fn) { | |||
// errors are handled faster. | |||
if (errorStackTraceLimitIsWritable) Error.stackTraceLimit = 0; | |||
|
|||
if (filename) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is if (filename) { ... } else { return ... }
structure above, and this check is unnecessary.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58760 +/- ##
==========================================
- Coverage 90.13% 90.10% -0.04%
==========================================
Files 639 640 +1
Lines 188192 188278 +86
Branches 36911 36917 +6
==========================================
+ Hits 169634 169648 +14
- Misses 11287 11338 +51
- Partials 7271 7292 +21
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the cleanup!
Landed in 7db30d7 |
PR-URL: #58760 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
code
variable ingetErrMessage
util is not initialized anymore since this commit 43c380e and the handling of it is now dead code. This PR removes them.