mirror of
https://github.com/containers/podman.git
synced 2025-12-03 03:39:44 +08:00
update buildah and c/common to latest
also includes bumps for c/storage and c/image Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
6
vendor/github.com/onsi/gomega/gbytes/buffer.go
generated
vendored
6
vendor/github.com/onsi/gomega/gbytes/buffer.go
generated
vendored
@@ -87,17 +87,11 @@ func (b *Buffer) Write(p []byte) (n int, err error) {
|
||||
/*
|
||||
Read implements the io.Reader interface. It advances the
|
||||
cursor as it reads.
|
||||
|
||||
Returns an error if called after Close.
|
||||
*/
|
||||
func (b *Buffer) Read(d []byte) (int, error) {
|
||||
b.lock.Lock()
|
||||
defer b.lock.Unlock()
|
||||
|
||||
if b.closed {
|
||||
return 0, errors.New("attempt to read from closed buffer")
|
||||
}
|
||||
|
||||
if uint64(len(b.contents)) <= b.readCursor {
|
||||
return 0, io.EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user