Commit 829b64c1 authored by Keith Randall's avatar Keith Randall

cmd/fix: fix cast check

Need 2-result cast so we can check the result correctly.

Fixes #23762

Change-Id: Icac3a5415156fe918988f369d6022a9a29c14089
Reviewed-on: https://go-review.googlesource.com/93078
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent ee59f6df
...@@ -119,7 +119,7 @@ func typefix(f *ast.File, badType func(string) bool) bool { ...@@ -119,7 +119,7 @@ func typefix(f *ast.File, badType func(string) bool) bool {
if !ok { if !ok {
return return
} }
t := s.X.(*ast.SelectorExpr) t, ok := s.X.(*ast.SelectorExpr)
if !ok { if !ok {
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment