-
Notifications
You must be signed in to change notification settings - Fork 644
refactor(yaml): remove nested functions #5389
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(yaml): remove nested functions #5389
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5389 +/- ##
=======================================
Coverage 96.36% 96.36%
=======================================
Files 458 458
Lines 37726 37727 +1
Branches 5576 5576
=======================================
+ Hits 36353 36354 +1
Misses 1331 1331
Partials 42 42 ☔ View full report in Codecov by Sentry. |
yaml/_dumper.ts
Outdated
@@ -533,7 +533,7 @@ function writeScalar( | |||
level: number, | |||
isKey: boolean, | |||
) { | |||
state.dump = ((): string => { | |||
const createDump = () => { |
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 typically reserve the arrow function syntax for anonymous functions. Changing...
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.
Yes, but since this functions is now a method of DumperState, you would need to bind this
with a regular function, right?
Please rebase |
No description provided.