fix golangci-lint errors

This commit is contained in:
Siyuan 2025-11-11 12:18:59 +00:00
parent 3e2786ef17
commit cab8ea4fd3
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}