diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2020-06-09 09:10:33 +0000 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-09 10:24:03 -0400 |
commit | 2df9edbd4fafa12387c71ebd048dbb9e1814c3fc (patch) | |
tree | f31d8b35db6688d6b95a4a5023072ffa9548aefe /vendor/github.com/json-iterator/go/stream.go | |
parent | 79f30af384cf6c74f89c3b44c01707da22d867e5 (diff) | |
download | podman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.tar.gz podman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.tar.bz2 podman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.zip |
Bump github.com/json-iterator/go from 1.1.9 to 1.1.10
Bumps [github.com/json-iterator/go](https://github.com/json-iterator/go) from 1.1.9 to 1.1.10.
- [Release notes](https://github.com/json-iterator/go/releases)
- [Commits](https://github.com/json-iterator/go/compare/v1.1.9...v1.1.10)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/json-iterator/go/stream.go')
-rw-r--r-- | vendor/github.com/json-iterator/go/stream.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/json-iterator/go/stream.go b/vendor/github.com/json-iterator/go/stream.go index 17662fded..23d8a3ad6 100644 --- a/vendor/github.com/json-iterator/go/stream.go +++ b/vendor/github.com/json-iterator/go/stream.go @@ -103,14 +103,14 @@ func (stream *Stream) Flush() error { if stream.Error != nil { return stream.Error } - n, err := stream.out.Write(stream.buf) + _, err := stream.out.Write(stream.buf) if err != nil { if stream.Error == nil { stream.Error = err } return err } - stream.buf = stream.buf[n:] + stream.buf = stream.buf[:0] return nil } @@ -177,7 +177,6 @@ func (stream *Stream) WriteEmptyObject() { func (stream *Stream) WriteMore() { stream.writeByte(',') stream.writeIndention(0) - stream.Flush() } // WriteArrayStart write [ with possible indention |