fix(hermes): repair sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9 #1

Open
bstein wants to merge 1 commits from hermes-repair/sonar-AZ2z_XbbKy9i4pkIqvM9 into master

View File

@ -157,12 +157,8 @@ func parseUSBScratchFstab(raw string) (*usbScratchConfig, bool) {
} }
cfg.Mountpoint = target cfg.Mountpoint = target
cfg.FS = fsType cfg.FS = fsType
if value, ok := strings.CutPrefix(source, "UUID="); ok { cfg.UUID, _ = strings.CutPrefix(source, "UUID=")
cfg.UUID = value cfg.Label, _ = strings.CutPrefix(source, "LABEL=")
}
if value, ok := strings.CutPrefix(source, "LABEL="); ok {
cfg.Label = value
}
} }
if cfg.Mountpoint == "" { if cfg.Mountpoint == "" {
return nil, false return nil, false