Skip to content
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

Disallow empty value in list. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

copybara-service[bot]
Copy link

Disallow empty value in list.

$ echo "x [a, , b]" | blaze-bin/third_party/txtpbfmt/fmt
parser.Format for path with content "x [a, , b]\n" returned err Empty value in list.
F0428 14:10:56.453731 680717 fmt.go:103] 1 error(s) encountered during execution

Note that this doesn't prevent empty strings:

$ echo "x [a, '' , b]" | blaze-bin/third_party/txtpbfmt/fmt
x [a, "", b]

$ echo "x [a,  , b]" | blaze-bin/third_party/txtpbfmt/fmt
parser.Format for path <stdin> with content "x [a,  , b]\n" returned err Empty value in list.
F0428 14:10:56.453731  680717 fmt.go:103] 1 error(s) encountered during execution

Note that this doesn't prevent empty strings:

$ echo "x [a, '' , b]" | blaze-bin/third_party/txtpbfmt/fmt
x [a, "", b]

PiperOrigin-RevId: 445142675
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant