We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 700d732 commit 314df7bCopy full SHA for 314df7b
cmd/otel-allocator/allocation/allocator.go
@@ -178,7 +178,7 @@ func (a *allocator) handleTargets(diff diff.Changes[*target.Item]) {
178
}
179
180
// Check for additions
181
- assignmentErrors := []error{}
+ var assignmentErrors []error
182
for k, item := range diff.Additions() {
183
// Do nothing if the item is already there
184
if _, ok := a.targetItems[k]; ok {
@@ -297,7 +297,7 @@ func (a *allocator) handleCollectors(diff diff.Changes[*Collector]) {
297
a.strategy.SetCollectors(a.collectors)
298
299
// Re-Allocate all targets
300
301
for _, item := range a.targetItems {
302
err := a.addTargetToTargetItems(item)
303
if err != nil {
0 commit comments