Skip to content

Commit 58d9b55

Browse files
tenthirtyamlbajolet-hashicorp
authored andcommitted
fix: omit comparison to bool constant
Omit comparison to bool constant. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent 4eb3fe1 commit 58d9b55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/vsphere/supervisor/step_import_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (s *StepImportImage) validate(ctx context.Context, logger *PackerLogger) er
163163
}
164164

165165
func (s *StepImportImage) Cleanup(state multistep.StateBag) {
166-
if v, ok := state.GetOk(StateKeyImageImportRequestCreated); !ok || v.(bool) == false {
166+
if v, ok := state.GetOk(StateKeyImageImportRequestCreated); !ok || !v.(bool) {
167167
// Either the image import step was skipped or the object was not created successfully.
168168
// Skip deleting the ContentLibraryItemImportRequest object.
169169
return

0 commit comments

Comments
 (0)