Skip to content

Commit

Permalink
gadget: s/validEMMCVolumeNames/valideMMCVolumeNames
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Nov 8, 2024
1 parent 2a79d0e commit 987408f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gadget/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ func validateEMMCStructureName(vs *VolumeStructure) error {
if vs.EnclosingVolume.Schema != schemaEMMC {
return nil
}
if !strutil.ListContains(validEMMCVolumeNames, vs.Name) {
return fmt.Errorf("cannot use %q as emmc name, only %q is allowed", vs.Name, validEMMCVolumeNames)
if !strutil.ListContains(valideMMCVolumeNames, vs.Name) {
return fmt.Errorf("cannot use %q as emmc name, only %q is allowed", vs.Name, valideMMCVolumeNames)
}
return nil
}
Expand Down Expand Up @@ -214,7 +214,7 @@ var (
}

// valid names for volumes under an eMMC schema
validEMMCVolumeNames = []string{"boot0", "boot1"}
valideMMCVolumeNames = []string{"boot0", "boot1"}
)

func validateReservedLabels(vs *VolumeStructure, reservedLabels []string) error {
Expand Down

0 comments on commit 987408f

Please sign in to comment.