]> Cypherpunks repositories - gostls13.git/commit
net: defer file.close() + minor style cleanup
authorEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 26 Apr 2017 02:21:50 +0000 (20:21 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Apr 2017 03:12:20 +0000 (03:12 +0000)
commitc433c374b53fc6484b571a606581f3f067a6f97a
tree58af20f27914b3785c4842c1b9edf599e2ec5bcd
parente3d7ec006f25385972c89f771d5d577adce3f024
net: defer file.close() + minor style cleanup

Moved the relevant file.close() usages close to after the
file opens and put them in defer statements, so that readers
don't have to think too much as to where the file is
being closed.

Change-Id: Ic4190b02ea2f5ac281b9ba104e0023e9f87ca8c7
Reviewed-on: https://go-review.googlesource.com/41796
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/ipsock_plan9.go
src/net/lookup_unix.go
src/net/port_unix.go