Commit 8813a6b
authored
[chore][pkg/translator/faro] run make modernize (open-telemetry#44261)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Run the `make modernize` tool.
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
This is part of the process to enable the
[modernize](open-telemetry#44199)
linter in CI.
There are no changes in the component behaviour.
```sh
pkg/translator/faro/keyval.go:122:4: stringsbuilder: using string += string in a loop is inefficient (modernize)
stacktrace += frameToString(&e.Stacktrace.Frames[i])
^
```
Signed-off-by: Paulo Dias <[email protected]>1 parent e532050 commit 8813a6b
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
0 commit comments