aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-11-29 11:46:48 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2017-11-29 15:53:14 +0000
commit06d87bf854ff61c2ea72dec6fc10c4c3fd59a76b (patch)
tree520ebad57ced934379a5d4bc3c8bd5b7decc5478 /src/testing/testing.go
parentc3aeeef584abb98e9d442193ab37bc89a5f5300b (diff)
downloadgo-06d87bf854ff61c2ea72dec6fc10c4c3fd59a76b.tar.xz
os: correct err check in TestChdirAndGetwd
Due to err being shadowed in the else brach, the actual err return of fd1.Chdir() is never checked. Fix it by not shadowing err anymore. Change-Id: I9f1d52e88d8bc9a1c035960aa7af9f5224a63ab0 Reviewed-on: https://go-review.googlesource.com/80556 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions