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

Use a nil Descriptor list for empty proto files #2152

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

rnro
Copy link
Collaborator

@rnro rnro commented Jan 7, 2025

Motivation:

If a proto file contains no services we include a comment indicating this is expected. At the moment this has two empty lines above it.

Modifications:

Store nil instead of an empty array of Descriptors into the FileDescription.

Result:

Only one empty line above the comment.

Motivation:

If a proto file contains no services we include a comment indicating
this is expected. At the moment this has two empty lines above it.

Modifications:

Store `nil` instead of an empty array of `Descriptor`s into the
`FileDescription`.

Result:

Only one empty line above the comment.
@rnro rnro requested a review from glbrntt January 7, 2025 11:21
@rnro rnro added the 🔨 semver/patch No public API change. label Jan 7, 2025
@glbrntt glbrntt merged commit 560c6c7 into grpc:main Jan 7, 2025
31 of 34 checks passed
@rnro rnro deleted the make_empty_files_more_descriptive branch January 7, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants