diff options
| author | Sean Liao <sean@liao.dev> | 2024-12-01 20:06:26 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-03 10:30:40 -0800 |
| commit | 439d39a719da12c213aeb69a09c5aaef83d9df67 (patch) | |
| tree | 18df9a88c7629b250de98eedc614aaf798d1e139 /src/cmd | |
| parent | 82337de9f2157a132257b2e2fe5ae8f1ad57ff20 (diff) | |
| download | go-439d39a719da12c213aeb69a09c5aaef83d9df67.tar.xz | |
all: replace reflect.Value.Type.Kind with reflect.Value.Kind
Fixes #46107
Change-Id: I170f3cacda652752cd740e04b565a616a0e43fd1
Reviewed-on: https://go-review.googlesource.com/c/go/+/632635
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/fix/cftype.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/fix/cftype.go b/src/cmd/fix/cftype.go index d4fcc4485e..04ece9fe5b 100644 --- a/src/cmd/fix/cftype.go +++ b/src/cmd/fix/cftype.go @@ -67,14 +67,14 @@ func typefix(f *ast.File, badType func(string) bool) bool { return } v := reflect.ValueOf(n) - if v.Type().Kind() != reflect.Pointer { + if v.Kind() != reflect.Pointer { return } if v.IsNil() { return } v = v.Elem() - if v.Type().Kind() != reflect.Struct { + if v.Kind() != reflect.Struct { return } for i := 0; i < v.NumField(); i++ { |
