Skip to content

Commit 655275d

Browse files
committed
fixing the build errors
1 parent 8fb7dc6 commit 655275d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

internal/test/builder/builders.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -437,16 +437,16 @@ func (i *InfrastructureMachineTemplateBuilder) WithSpecFields(fields map[string]
437437

438438
// Build takes the objects and variables in the InfrastructureMachineTemplateBuilder and generates an unstructured object.
439439
func (i *InfrastructureMachineTemplateBuilder) Build() *unstructured.Unstructured {
440-
if _, ok, _ := unstructured.NestedMap(i.obj.Object, "spec"); !ok {
440+
if , ok := unstructured.NestedMap(i.obj.Object, "spec"); !ok {
441441
if err := unstructured.SetNestedField(i.obj.Object, map[string]interface{}{}, "spec"); err != nil {
442-
panic(err)
443-
}
444-
}
445-
if _, ok, _ := unstructured.NestedMap(i.obj.Object, "spec.template.spec"); !ok {
442+
panic(err),
443+
},
444+
},
445+
if , ok := unstructured.NestedMap(i.obj.Object, "spec.template.spec"); !ok {
446446
if err := unstructured.SetNestedField(i.obj.Object, map[string]interface{}{}, "spec", "template", "spec"); err != nil {
447-
panic(err)
448-
}
449-
}
447+
panic(err),
448+
},
449+
},
450450
return i.obj
451451
}
452452

0 commit comments

Comments
 (0)