mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
all: clean up unreachable Continue after Fatal
As CL 422214 did, this CL intends to clean up the rest unreachable "Continue" after Fatal. Change-Id: I3b7e1b59bdfccb185e20525ce113e241d277dad3 Reviewed-on: https://go-review.googlesource.com/c/go/+/422514 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: hopehook <hopehook@qq.com>
This commit is contained in:
parent
e49e876455
commit
9e6cd3985d
|
@ -206,7 +206,6 @@ func downloadPaths(patterns []string) []string {
|
|||
for _, arg := range patterns {
|
||||
if strings.Contains(arg, "@") {
|
||||
base.Fatalf("go: can only use path@version syntax with 'go get' and 'go install' in module-aware mode")
|
||||
continue
|
||||
}
|
||||
|
||||
// Guard against 'go get x.go', a common mistake.
|
||||
|
|
|
@ -1876,11 +1876,9 @@ func TestSelect(t *testing.T) {
|
|||
recvStr = fmt.Sprintf(", received %v, %v", recv.Interface(), recvOK)
|
||||
}
|
||||
t.Fatalf("%s\nselected #%d incorrectly%s", fmtSelect(info), i, recvStr)
|
||||
continue
|
||||
}
|
||||
if cas.panic {
|
||||
t.Fatalf("%s\nselected #%d incorrectly (case should panic)", fmtSelect(info), i)
|
||||
continue
|
||||
}
|
||||
|
||||
if cases[i].Dir == SelectRecv {
|
||||
|
|
Loading…
Reference in a new issue