Merge pull request #27566 from grey3228/fix/check_newGenericDecompressor_err

check err returned by newGenericDecompressor
This commit is contained in:
openshift-merge-bot[bot]
2025-11-20 23:15:56 +00:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ type uncompressedDecompressor struct {
func newUncompressedDecompressor(compressedFilePath string) (*uncompressedDecompressor, error) {
d, err := newGenericDecompressor(compressedFilePath)
if err != nil {
return nil, err
}
return &uncompressedDecompressor{*d}, err
}

View File

@@ -16,6 +16,9 @@ type zipDecompressor struct {
func newZipDecompressor(compressedFilePath string) (*zipDecompressor, error) {
d, err := newGenericDecompressor(compressedFilePath)
if err != nil {
return nil, err
}
return &zipDecompressor{*d, nil, nil}, err
}