diff --git a/internal/model/component.go b/internal/model/component.go index fd6318d6..6f0d49f0 100644 --- a/internal/model/component.go +++ b/internal/model/component.go @@ -21,18 +21,13 @@ type Component struct { type Components []*Component // BySlug returns a component that matches the slug value. -func (c Components) BySlugVendorModel(cSlug, cVendor string, cModels []string) *Component { +func (c Components) BySlugVendorModel(cSlug, _ string, cModels []string) *Component { for idx, component := range c { // skip non matching component slug if !strings.EqualFold(cSlug, component.Slug) { continue } - // skip non matching component vendor - if !strings.EqualFold(component.Vendor, cVendor) { - continue - } - // match component model with contains for _, findModel := range cModels { if strings.Contains(strings.ToLower(component.Model), strings.TrimSpace(findModel)) {