Update usb_mass_storage.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aveline 2025-11-11 13:16:48 +01:00 committed by GitHub
parent 65119ff040
commit 3e2786ef17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func getMassStorageImage() (string, error) {
} }
func setMassStorageImage(imagePath string) error { func setMassStorageImage(imagePath string) error {
if err, _ := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath); err != nil { if err := gadget.OverrideGadgetConfig("mass_storage_lun0", "file", imagePath); err != nil {
return fmt.Errorf("failed to set mass storage path: %w", err) return fmt.Errorf("failed to set mass storage path: %w", err)
} }