Commit 1186b3c
committed
Only set condition message when non-empty
When message is empty, omitting the field from the protobuf message
is cleaner than explicitly setting it to an empty string. Protobuf
includes explicitly-set zero values in serialization, so setting
message="" causes it to appear in MessageToDict output and gRPC
responses even when there is nothing to say.
Signed-off-by: Nic Cope <nicc@rk0n.org>1 parent fb39682 commit 1186b3c
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
119 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments