diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2024-02-08 17:34:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 17:34:22 -0800 |
| commit | 94a4f701c2fbaf914975c15c458f8b3a500e9d9e (patch) | |
| tree | 85000f992fed019b25dc70857bfab4ed65c0f9c5 /control/controlknobs/controlknobs_test.go | |
| parent | efddad7d7ddbeaaef7e88bf1b4920c5b176e2f17 (diff) | |
| download | tailscale-94a4f701c2fbaf914975c15c458f8b3a500e9d9e.tar.xz tailscale-94a4f701c2fbaf914975c15c458f8b3a500e9d9e.zip | |
all: use reflect.TypeFor now available in Go 1.22 (#11078)
Updates #cleanup
Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'control/controlknobs/controlknobs_test.go')
| -rw-r--r-- | control/controlknobs/controlknobs_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/control/controlknobs/controlknobs_test.go b/control/controlknobs/controlknobs_test.go index 266a4708d..a78a486f3 100644 --- a/control/controlknobs/controlknobs_test.go +++ b/control/controlknobs/controlknobs_test.go @@ -15,7 +15,7 @@ func TestAsDebugJSON(t *testing.T) { } k := new(Knobs) got := k.AsDebugJSON() - if want := reflect.TypeOf(Knobs{}).NumField(); len(got) != want { + if want := reflect.TypeFor[Knobs]().NumField(); len(got) != want { t.Errorf("AsDebugJSON map has %d fields; want %v", len(got), want) } } |
