-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: Bug bash fixes #1029
fix: Bug bash fixes #1029
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1029 +/- ##
=======================================
Coverage 83.03% 83.03%
=======================================
Files 412 412
Lines 8857 8859 +2
Branches 1821 1821
=======================================
+ Hits 7354 7356 +2
Misses 1464 1464
Partials 39 39
☔ View full report in Codecov by Sentry. |
const newData = data; | ||
['user', 'id'].forEach(prop => delete newData[prop]); |
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.
Do we need to make a newData variable here? Because we're just making a reference copy, this statement is equivalent to deleting from the original data variable.
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.
We just had some eslint things about making direct changes to a parameter. Maybe the error isn't smart enough to catch something being pass by reference vs value but I still don't love to change passed in variables
https://2u-internal.atlassian.net/browse/ENT-7682
For all changes
Only if submitting a visual change