File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cmd/otel-allocator/allocation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ func (a *allocator) handleTargets(diff diff.Changes[*target.Item]) {
178
178
}
179
179
180
180
// Check for additions
181
- assignmentErrors := []error {}
181
+ var assignmentErrors []error
182
182
for k , item := range diff .Additions () {
183
183
// Do nothing if the item is already there
184
184
if _ , ok := a .targetItems [k ]; ok {
@@ -297,7 +297,7 @@ func (a *allocator) handleCollectors(diff diff.Changes[*Collector]) {
297
297
a .strategy .SetCollectors (a .collectors )
298
298
299
299
// Re-Allocate all targets
300
- assignmentErrors := []error {}
300
+ var assignmentErrors []error
301
301
for _ , item := range a .targetItems {
302
302
err := a .addTargetToTargetItems (item )
303
303
if err != nil {
You can’t perform that action at this time.
0 commit comments