diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-28 14:39:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 14:39:31 -0500 |
commit | 2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b (patch) | |
tree | 77d46e8e793088ae9dbd0c74999d31e26951a629 /vendor/github.com/ulikunitz/xz/format.go | |
parent | a4c255a939cf340978efd9cb070951029237c8cf (diff) | |
parent | 75c3b33899954e7a0925426b38fd1084d521c3a0 (diff) | |
download | podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.gz podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.bz2 podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.zip |
Merge pull request #9140 from containers/dependabot/go_modules/github.com/containers/image/v5-5.10.0
Bump github.com/containers/image/v5 from 5.9.0 to 5.10.0
Diffstat (limited to 'vendor/github.com/ulikunitz/xz/format.go')
-rw-r--r-- | vendor/github.com/ulikunitz/xz/format.go | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/vendor/github.com/ulikunitz/xz/format.go b/vendor/github.com/ulikunitz/xz/format.go index edfec9a94..84b58c9dd 100644 --- a/vendor/github.com/ulikunitz/xz/format.go +++ b/vendor/github.com/ulikunitz/xz/format.go @@ -47,9 +47,9 @@ const HeaderLen = 12 // Constants for the checksum methods supported by xz. const ( None byte = 0x0 - CRC32 = 0x1 - CRC64 = 0x4 - SHA256 = 0xa + CRC32 byte = 0x1 + CRC64 byte = 0x4 + SHA256 byte = 0xa ) // errInvalidFlags indicates that flags are invalid. @@ -569,22 +569,6 @@ func readFilters(r io.Reader, count int) (filters []filter, err error) { return []filter{f}, err } -// writeFilters writes the filters. -func writeFilters(w io.Writer, filters []filter) (n int, err error) { - for _, f := range filters { - p, err := f.MarshalBinary() - if err != nil { - return n, err - } - k, err := w.Write(p) - n += k - if err != nil { - return n, err - } - } - return n, nil -} - /*** Index ***/ // record describes a block in the xz file index. |