Commit f17e470
authored
[chore][component] Minor stylistic updates to
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Minor stylistic things I noticed while looking at `component.ID`:
* We should assert the interfaces it implements.
* We don't use the "result parameters"/named return parameters in
`MarshalText`. I'm more ambivalent on this one, but I was a bit
surprised to see them when they're not used. I can see reasons to keep
them as well if we'd prefer.component.ID (open-telemetry#13543)1 parent ae29ab5 commit f17e470
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
119 | | - | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| |||
0 commit comments