diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2022-05-02 11:40:57 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-05-02 21:05:53 +0000 |
| commit | a887579976c0f581ca0eb52094b2c5c63893dcdf (patch) | |
| tree | 0a6af5f1557eddea3155969d0fb19c87805894c6 /src/cmd/api | |
| parent | 8375b54d441c9123c8d2b7343ea6cc7233b746d9 (diff) | |
| download | go-a887579976c0f581ca0eb52094b2c5c63893dcdf.tar.xz | |
compress/flate: move idempotent close logic to compressor
The compressor methods already have logic for handling a sticky error.
Merge the logic from CL 136475 into that.
This slightly changes the error message to be more sensible
in the situation where it's returned by Flush.
Updates #27741
Change-Id: Ie34cf3164d0fa6bd0811175ca467dbbcb3be1395
Reviewed-on: https://go-review.googlesource.com/c/go/+/403514
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions
