Commit a194b31
committed
Use a nil Descriptor list for empty proto files
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.1 parent 5e92f64 commit a194b31
File tree
2 files changed
+2
-3
lines changed- Sources/GRPCCodeGen/Internal/Translator
- Tests/GRPCCodeGenTests/Internal/Translator
2 files changed
+2
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
0 commit comments