mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 01:04:25 +01:00
hypervisor: cleanup valid method
The boolean return value is not necessary. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -173,8 +173,8 @@ func (q *qemu) qemuPath() (string, error) {
|
||||
|
||||
// init intializes the Qemu structure.
|
||||
func (q *qemu) init(id string, hypervisorConfig *HypervisorConfig, vmConfig Resources, storage resourceStorage) error {
|
||||
valid, err := hypervisorConfig.valid()
|
||||
if valid == false || err != nil {
|
||||
err := hypervisorConfig.valid()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user