-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
base: main
Are you sure you want to change the base?
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.12% -0.01%
==========================================
Files 639 639
Lines 188192 188184 -8
Branches 36911 36911
==========================================
- Hits 169634 169608 -26
- Misses 11287 11318 +31
+ Partials 7271 7258 -13
🚀 New features to boost your workflow:
|
@@ -199,7 +197,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.
I think this and the ending }
on 218 can be removed, right?
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.