Skip to content

Commit

Permalink
cmd/fix: fix cast check
Browse files Browse the repository at this point in the history
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: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
randall77 committed Feb 9, 2018
1 parent ee59f6d commit 829b64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/fix/cftype.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func typefix(f *ast.File, badType func(string) bool) bool {
if !ok {
return
}
t := s.X.(*ast.SelectorExpr)
t, ok := s.X.(*ast.SelectorExpr)
if !ok {
return
}
Expand Down

0 comments on commit 829b64c

Please sign in to comment.