Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Pritesh Bandi <[email protected]>
  • Loading branch information
priteshbandi committed Dec 31, 2023
1 parent d629628 commit d1bf254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1bf254

Please sign in to comment.