diff --git a/cpio.go b/cpio.go index f1b9dad..71d9d3d 100644 --- a/cpio.go +++ b/cpio.go @@ -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 } } diff --git a/rpm.go b/rpm.go index 6731a1a..b420f9b 100644 --- a/rpm.go +++ b/rpm.go @@ -3,6 +3,7 @@ package xtractr import ( "compress/bzip2" "compress/gzip" + "errors" "fmt" "io" "os" @@ -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