From 5f97b0aa48bc516b72c0f26d2672c45666b0b1c5 Mon Sep 17 00:00:00 2001 From: Hank Donnay Date: Wed, 5 Apr 2023 16:19:19 -0500 Subject: [PATCH] rpm: lints Signed-off-by: Hank Donnay --- rpm/ecosystem.go | 2 +- rpm/native_db.go | 2 ++ rpm/packagescanner.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm/ecosystem.go b/rpm/ecosystem.go index d604defac..4029e54d2 100644 --- a/rpm/ecosystem.go +++ b/rpm/ecosystem.go @@ -12,7 +12,7 @@ import ( ) // NewEcosystem provides the set of scanners and coalescers for the rpm 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) { return []indexer.PackageScanner{&Scanner{}}, nil diff --git a/rpm/native_db.go b/rpm/native_db.go index 9b33814da..c5af3ad7e 100644 --- a/rpm/native_db.go +++ b/rpm/native_db.go @@ -115,6 +115,8 @@ type Info struct { Epoch int } +// Load populates the receiver with information extracted from the provided +// [rpm.Header]. func (i *Info) Load(ctx context.Context, h *rpm.Header) error { for idx := range h.Infos { e := &h.Infos[idx] diff --git a/rpm/packagescanner.go b/rpm/packagescanner.go index 9e19421a9..c965c4bd1 100644 --- a/rpm/packagescanner.go +++ b/rpm/packagescanner.go @@ -1,3 +1,4 @@ +// Package rpm provides an [indexer.PackageScanner] for the rpm package manager. package rpm import (