]> Cypherpunks repositories - gostls13.git/commit
all: move defers to after error check to avoid nil indirection
authorRob Pike <r@golang.org>
Fri, 17 Aug 2012 18:55:11 +0000 (11:55 -0700)
committerRob Pike <r@golang.org>
Fri, 17 Aug 2012 18:55:11 +0000 (11:55 -0700)
commitdeb53889c200deba1d4048a155e936c11b6a8492
treefb56c0744fd0bbe993e89792c04ecf00624a828a
parent95a00cae2eabf726634695ee1e079e28b9bde743
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