From 9428447cd2670e999ec8b4dd45cf2e23a7e0dc8a Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Wed, 24 Apr 2024 17:19:52 -0700 Subject: [PATCH] lint: unusedwrite fixes Signed-off-by: Tonis Tiigi --- builder/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/node.go b/builder/node.go index 64a990fc..bb0ec2f3 100644 --- a/builder/node.go +++ b/builder/node.go @@ -186,7 +186,7 @@ func (b *Builder) LoadNodes(ctx context.Context, opts ...LoadNodesOption) (_ []N if pl := di.DriverInfo.DynamicNodes[i].Platforms; len(pl) > 0 { diClone.Platforms = pl } - nodes = append(nodes, di) + nodes = append(nodes, diClone) } dynamicNodes = append(dynamicNodes, di.DriverInfo.DynamicNodes...) }