Skip to content

Commit 147817b

Browse files
Le Garrec Maëlizissise
authored andcommitted
make if condition easier to read
1 parent 66d2518 commit 147817b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func CreateServer(api *ScalewayAPI, c *ConfigCreateServer) (string, error) {
351351
return "", errors.New("Invalid commercial type")
352352
}
353353

354-
if !(c.BootType == "local" || c.BootType == "bootscript") {
354+
if c.BootType != "local" && c.BootType != "bootscript" {
355355
return "", errors.New("Invalid boot type")
356356
}
357357

0 commit comments

Comments
 (0)