-
-
Notifications
You must be signed in to change notification settings - Fork 776
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 issue #526: wrong quote position writing condensed flow #527
Conversation
lib/js-yaml/dumper.js
Outdated
pairBuffer = state.condenseFlow ? '"' : ''; | ||
|
||
if (index !== 0) pairBuffer += ', '; | ||
pairBuffer = index === 0 ? '' : ', '; |
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.
Please avoid such notation, it's not enough easy to read. Use if (index !== 0) pairBuffer += ', ';
and so on in appropriate places.
Seems ok in general. Please take a look at comment & squash all to single commit. |
@puzrin Improved readability and squashed commits. |
Thank you very much! |
No description provided.