Skip to content

Commit daabfde

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent be1542f commit daabfde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/linode/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ func (c *Config) Prepare(raws ...any) ([]string, error) {
720720
errs, errors.New("authorized_users cannot be specified when using custom disks (specify in disk blocks instead)"))
721721
}
722722

723-
if c.SwapSize != nil && *c.SwapSize > 0 {
723+
if c.SwapSize != nil {
724724
errs = packersdk.MultiErrorAppend(
725725
errs, errors.New("swap_size cannot be specified when using custom disks (create a swap disk instead)"))
726726
}

0 commit comments

Comments
 (0)