aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/json-iterator/go/stream.go
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2020-06-09 09:10:33 +0000
committerDaniel J Walsh <dwalsh@redhat.com>2020-06-09 10:24:03 -0400
commit2df9edbd4fafa12387c71ebd048dbb9e1814c3fc (patch)
treef31d8b35db6688d6b95a4a5023072ffa9548aefe /vendor/github.com/json-iterator/go/stream.go
parent79f30af384cf6c74f89c3b44c01707da22d867e5 (diff)
downloadpodman-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.go5
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