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 12, 2023
1 parent 53a4e46 commit f97901e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpm/internal/rpm/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (h *Header) Parse(ctx context.Context, r io.ReaderAt) error {
//
// NB The TypeChar, TypeInt8, TypeInt16, TypeInt32, TypeInt64, and TypeI18nString
// all return slices.
func (h *Header) ReadData(ctx context.Context, e *EntryInfo) (interface{}, error) {
func (h *Header) ReadData(_ context.Context, e *EntryInfo) (interface{}, error) {
// TODO(hank) Provide a generic function like `func[T any](*Header, *EntryInfo) T` to do this.
switch e.Type {
case TypeBin:
Expand Down Expand Up @@ -180,7 +180,7 @@ func splitCString(data []byte, atEOF bool) (advance int, token []byte, err error
return 0, nil, nil
}

func (h *Header) loadArenas(ctx context.Context, r io.ReaderAt) error {
func (h *Header) loadArenas(_ context.Context, r io.ReaderAt) error {
const (
headerSz = 8
tagsMax = 0x0000ffff
Expand Down Expand Up @@ -341,7 +341,7 @@ func checkTagType(key Tag, typ Kind) bool {
return true
}

func (h *Header) loadTag(ctx context.Context, i int) (*EntryInfo, error) {
func (h *Header) loadTag(_ context.Context, i int) (*EntryInfo, error) {
e := &h.Infos[i]
if e.Tag == Tag(0) {
b := make([]byte, entryInfoSize)
Expand Down

0 comments on commit f97901e

Please sign in to comment.