Skip to content

Commit 54bcb61

Browse files
committed
ran linter
Signed-off-by: notpranavunsw <[email protected]>
1 parent 52a1ced commit 54bcb61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/limayaml/validate.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ func Validate(y LimaYAML, warn bool) error {
108108
return errors.New("field `cpus` must be set")
109109
}
110110

111-
if (*y.CPUs > runtime.NumCPU()) {
112-
return fmt.Errorf("field `cpus` is set to %d, which is greater than the number of CPUs available (%d)", *y.CPUs, runtime.NumCPU())
113-
}
111+
if *y.CPUs > runtime.NumCPU() {
112+
return fmt.Errorf("field `cpus` is set to %d, which is greater than the number of CPUs available (%d)", *y.CPUs, runtime.NumCPU())
113+
}
114114

115115
if _, err := units.RAMInBytes(*y.Memory); err != nil {
116116
return fmt.Errorf("field `memory` has an invalid value: %w", err)

0 commit comments

Comments
 (0)