Skip to content

Commit

Permalink
Disable vendor check
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Sep 19, 2023
1 parent aa6c0eb commit 8596d91
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/model/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8596d91

Please sign in to comment.