]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] all: move defers to after error check to avoid nil indirection
authorRob Pike <r@golang.org>
Fri, 21 Sep 2012 19:54:39 +0000 (05:54 +1000)
committerRob Pike <r@golang.org>
Fri, 21 Sep 2012 19:54:39 +0000 (05:54 +1000)
commit41f42120a5f9bdf45edabb64078235fc9e7bb004
tree2c9ecd9601cee87f74b2f3e7515426af62d58b38
parent21bf9e9561acec217492a2308ab46b2b45b9162d
[release-branch.go1] all: move defers to after error check to avoid nil indirection

««« backport 8f0c8f604ee0
all: move defers to after error check to avoid nil indirection
Only affects some tests and none seem likely to be problematic, but let's fix them.
Fixes #3971.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6463060

»»»
src/pkg/net/http/transport_test.go
src/pkg/os/os_test.go