Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 1, 2024
1 parent 5875b1c commit ea39426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (x *XFile) uncpio(reader io.Reader) (int64, []string, error) {
return size, files, fmt.Errorf("%s: %w", x.FilePath, err)
}

files = append(files, filepath.Join(x.OutputDir, zipFile.Name)) //nolint: gosec
files = append(files, filepath.Join(x.OutputDir, zipFile.Name))
size += fSize
}
}
Expand Down
5 changes: 3 additions & 2 deletions rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package xtractr
import (
"compress/bzip2"
"compress/gzip"
"errors"
"fmt"
"io"
"os"
Expand All @@ -14,8 +15,8 @@ import (
)

var (
ErrUnsupportedRPMCompression = fmt.Errorf("unsupported rpm compression")
ErrUnsupportedRPMArchiveFmt = fmt.Errorf("unsupported rpm archive format")
ErrUnsupportedRPMCompression = errors.New("unsupported rpm compression")
ErrUnsupportedRPMArchiveFmt = errors.New("unsupported rpm archive format")
)

func ExtractRPM(xFile *XFile) (int64, []string, error) { //nolint:cyclop
Expand Down

0 comments on commit ea39426

Please sign in to comment.