Skip to content

Commit

Permalink
rpm: lints
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Apr 13, 2023
1 parent 0d40641 commit fdbff91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/ecosystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions rpm/native_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions rpm/packagescanner.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package rpm provides an [indexer.PackageScanner] for the rpm package manager.
package rpm

import (
Expand Down

0 comments on commit fdbff91

Please sign in to comment.