diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-30 17:07:46 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-30 17:07:46 +0200 |
| commit | 39e81ffed381e14651cd1dd4f33b4036bce4a56d (patch) | |
| tree | 9254fe352078579c530c7907904dea9e87c84c20 | |
| parent | 25548d3e876f55e2af0872e3b1b2c8bd93a5eca3 (diff) | |
CLI: Fix profiles data type check
| -rw-r--r-- | cmd/cli/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 827617e..8eb71c1 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -92,7 +92,7 @@ func sendProfile(state *client.Client, data interface{}) { fmt.Fprintf(os.Stderr, "\ninvalid data type: %v\n", reflect.TypeOf(data)) return } - sps, ok := d.Data.(srvtypes.Profiles) + sps, ok := d.Data.(*srvtypes.Profiles) if !ok { fmt.Fprintf(os.Stderr, "\ninvalid data type for profiles: %v\n", reflect.TypeOf(d.Data)) return |
