mirror of https://github.com/jetkvm/kvm.git
fix golangci-lint errors
This commit is contained in:
parent
3e2786ef17
commit
cab8ea4fd3
|
|
@ -37,7 +37,8 @@ func getMassStorageImage() (string, error) {
|
|||
}
|
||||
|
||||
func setMassStorageImage(imagePath string) error {
|
||||
if err := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath); err != nil {
|
||||
err, _ := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to set mass storage path: %w", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue