From d1bf2545609be06e6edbbdbbaf3e79652131ba0d Mon Sep 17 00:00:00 2001 From: Pritesh Bandi Date: Sun, 31 Dec 2023 02:20:23 -0800 Subject: [PATCH] feedback Signed-off-by: Pritesh Bandi --- cli/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/utils.go b/cli/utils.go index 10cc4e0..f2af5d3 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -32,7 +32,7 @@ func getValidArgs(md *plugin.GetMetadataResponse) []string { if slices.Contains(md.Capabilities, plugin.CapabilityTrustedIdentityVerifier) || slices.Contains(md.Capabilities, plugin.CapabilityRevocationCheckVerifier) { opts = append(opts, plugin.CommandVerifySignature) } - // convert &value (type *[]Command) to *[]string via unsafe.Pointer, then deref + // convert &opts (type *[]Command) to *[]string via unsafe.Pointer, then deref stringOpts := *(*[]string)(unsafe.Pointer(&opts)) sort.Strings(stringOpts) return stringOpts