aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com/google
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2017-11-02 15:03:28 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2017-11-02 23:05:53 +0000
commitaf37332d160e096fe5bedc551f318c7b76d4e57a (patch)
treec458a554c045775eedd8b1ad25504b69f9e58db6 /src/cmd/vendor/github.com/google
parent41d860cf0e7cb63003d55839b59949752b7fdecc (diff)
downloadgo-af37332d160e096fe5bedc551f318c7b76d4e57a.tar.xz
io: fix Pipe regression with differing error types
Usage of atomic.Value has a subtle requirement that the value be of the same concrete type. In prior usage, the intention was to consistently store a value of the error type. Since error is an interface, the underlying concrete can differ. Fix this by creating a type-safe abstraction over atomic.Value that wraps errors in a struct{error} type to ensure consistent types. Change-Id: Ica74f2daba15e4cff48d2b4f830d2cb51c608fb6 Reviewed-on: https://go-review.googlesource.com/75594 Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com/google')
0 files changed, 0 insertions, 0 deletions