Skip to content

Commit

Permalink
Merge pull request #1980 from Honny1/fix-deprecated-tar_TypeRegA
Browse files Browse the repository at this point in the history
Fix deprecated use of `tar.TypeRegA` (SA1019)
  • Loading branch information
openshift-merge-bot[bot] authored Jun 20, 2024
2 parents b885f96 + ee13fd9 commit 11705ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ func createTarFile(path, extractDir string, hdr *tar.Header, reader io.Reader, L
}
}

case tar.TypeReg, tar.TypeRegA:
case tar.TypeReg:
// Source is regular file. We use system.OpenFileSequential to use sequential
// file access to avoid depleting the standby list on Windows.
// On Linux, this equates to a regular os.OpenFile
Expand Down
1 change: 0 additions & 1 deletion pkg/chunked/internal/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ const (

var TarTypes = map[byte]string{
tar.TypeReg: TypeReg,
tar.TypeRegA: TypeReg,
tar.TypeLink: TypeLink,
tar.TypeChar: TypeChar,
tar.TypeBlock: TypeBlock,
Expand Down

0 comments on commit 11705ca

Please sign in to comment.