diff --git a/pkg/sentinel/collector.go b/pkg/sentinel/collector.go index 7e686e7..5479b20 100644 --- a/pkg/sentinel/collector.go +++ b/pkg/sentinel/collector.go @@ -157,12 +157,8 @@ func parseUSBScratchFstab(raw string) (*usbScratchConfig, bool) { } cfg.Mountpoint = target cfg.FS = fsType - if value, ok := strings.CutPrefix(source, "UUID="); ok { - cfg.UUID = value - } - if value, ok := strings.CutPrefix(source, "LABEL="); ok { - cfg.Label = value - } + cfg.UUID, _ = strings.CutPrefix(source, "UUID=") + cfg.Label, _ = strings.CutPrefix(source, "LABEL=") } if cfg.Mountpoint == "" { return nil, false