diff --git a/rhel/ecosystem.go b/rhel/ecosystem.go index 35108ba6b..ed5ac2523 100644 --- a/rhel/ecosystem.go +++ b/rhel/ecosystem.go @@ -8,18 +8,18 @@ import ( ) // NewEcosystem provides the set of scanners and coalescer for the rhel ecosystem. -func NewEcosystem(ctx context.Context) *indexer.Ecosystem { +func NewEcosystem(_ context.Context) *indexer.Ecosystem { return &indexer.Ecosystem{ - PackageScanners: func(ctx context.Context) ([]indexer.PackageScanner, error) { + PackageScanners: func(_ context.Context) ([]indexer.PackageScanner, error) { return []indexer.PackageScanner{new(rpm.Scanner)}, nil }, - DistributionScanners: func(ctx context.Context) ([]indexer.DistributionScanner, error) { + DistributionScanners: func(_ context.Context) ([]indexer.DistributionScanner, error) { return []indexer.DistributionScanner{new(DistributionScanner)}, nil }, - RepositoryScanners: func(ctx context.Context) ([]indexer.RepositoryScanner, error) { + RepositoryScanners: func(_ context.Context) ([]indexer.RepositoryScanner, error) { return []indexer.RepositoryScanner{new(RepositoryScanner)}, nil }, - Coalescer: func(ctx context.Context) (indexer.Coalescer, error) { + Coalescer: func(_ context.Context) (indexer.Coalescer, error) { return new(Coalescer), nil }, } diff --git a/rhel/matcher.go b/rhel/matcher.go index abc016fea..e0bf0aa19 100644 --- a/rhel/matcher.go +++ b/rhel/matcher.go @@ -33,7 +33,7 @@ func (*Matcher) Query() []driver.MatchConstraint { } // Vulnerable implements driver.Matcher. -func (m *Matcher) Vulnerable(ctx context.Context, record *claircore.IndexRecord, vuln *claircore.Vulnerability) (bool, error) { +func (m *Matcher) Vulnerable(_ context.Context, record *claircore.IndexRecord, vuln *claircore.Vulnerability) (bool, error) { pkgVer := version.NewVersion(record.Package.Version) var vulnVer version.Version // Assume the vulnerability record we have is for the last known vulnerable diff --git a/rhel/updaterset.go b/rhel/updaterset.go index b8f96d954..30b461d46 100644 --- a/rhel/updaterset.go +++ b/rhel/updaterset.go @@ -22,7 +22,7 @@ const DefaultManifest = `https://access.redhat.com/security/data/oval/v2/PULP_MA // NewFactory creates a Factory making updaters based on the contents of the // provided pulp manifest. -func NewFactory(ctx context.Context, manifest string) (*Factory, error) { +func NewFactory(_ context.Context, manifest string) (*Factory, error) { var err error var f Factory f.url, err = url.Parse(manifest)