Skip to content

Conversation

@emh-jump
Copy link
Contributor

Adds a special case when a list or map is empty

Fixes #817

Added 0 as a non-magic number since a constant would likely make this code, and other code in the repo like it, more confusing. Can revert and add a constant if folks would really prefer.

Copy link
Member

@prembhaskal prembhaskal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prembhaskal
Copy link
Member

looks good, but i don't have write access, please ping in carvel slack to get some traction.

@renuy renuy requested review from 100mik and cppforlife July 31, 2025 05:37
Copy link

@100mik 100mik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes looks good to me! Thanks for the PR.
I would still let @cppforlife tke one final look before merging this away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

ytt fmt changes yaml structure

3 participants