mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
syscall: remove unreachable code
Reported by go vet: $ go vet syscall # syscall_test # [syscall_test] syscall/env_unix_test.go💯4: unreachable code The TestVetStdlib test in golang.org/x/tools/go/analysis/unitchecker also ran into this. Fixes #73998. Change-Id: I7f2842a42835a38163433a09a3311be9c30f8a14 Cq-Include-Trybots: luci.golang.try:x_tools-gotip-linux-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/702415 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
f1c4b860d4
commit
9650c97d0f
1 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,9 @@ func TestClearenv(t *testing.T) {
|
|||
defer func() {
|
||||
ret = recover()
|
||||
}()
|
||||
panic(nil)
|
||||
if true {
|
||||
panic(nil)
|
||||
}
|
||||
return "should not return"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue