From 366001fb5fa96b3b0f2f9e84b7ebc56dc4c94adc Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sun, 29 Mar 2020 06:16:27 -0400 Subject: Update vendor of boltdb and containers/image Signed-off-by: Daniel J Walsh --- vendor/github.com/ulikunitz/xz/none-check.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vendor/github.com/ulikunitz/xz/none-check.go (limited to 'vendor/github.com/ulikunitz/xz/none-check.go') diff --git a/vendor/github.com/ulikunitz/xz/none-check.go b/vendor/github.com/ulikunitz/xz/none-check.go new file mode 100644 index 000000000..e12d8e476 --- /dev/null +++ b/vendor/github.com/ulikunitz/xz/none-check.go @@ -0,0 +1,23 @@ +// Copyright 2014-2019 Ulrich Kunitz. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package xz + +import "hash" + +type noneHash struct{} + +func (h noneHash) Write(p []byte) (n int, err error) { return len(p), nil } + +func (h noneHash) Sum(b []byte) []byte { return b } + +func (h noneHash) Reset() {} + +func (h noneHash) Size() int { return 0 } + +func (h noneHash) BlockSize() int { return 0 } + +func newNoneHash() hash.Hash { + return &noneHash{} +} -- cgit v1.2.3-54-g00ecf