summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-30 17:07:46 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-30 17:07:46 +0200
commit39e81ffed381e14651cd1dd4f33b4036bce4a56d (patch)
tree9254fe352078579c530c7907904dea9e87c84c20 /cmd/cli/main.go
parent25548d3e876f55e2af0872e3b1b2c8bd93a5eca3 (diff)
CLI: Fix profiles data type check
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go2
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