Skip to content

Commit 4eb3fe1

Browse files
tenthirtyamlbajolet-hashicorp
authored andcommitted
fix: remove nil check
Remove the nil check for `w.RunOnceCommandList` since `len()` for a `nil` slice is defined as zero. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent b167302 commit 4eb3fe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/vsphere/clone/step_customize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func (w *WindowsOptions) sysprep() *types.CustomizationSysprep {
440440
}
441441

442442
func (w *WindowsOptions) guiRunOnce() *types.CustomizationGuiRunOnce {
443-
if w.RunOnceCommandList == nil || len(w.RunOnceCommandList) == 0 {
443+
if len(w.RunOnceCommandList) == 0 {
444444
return &types.CustomizationGuiRunOnce{
445445
CommandList: []string{""},
446446
}

0 commit comments

Comments
 (0)