Skip to content

Commit

Permalink
govet fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphire-janrain committed Aug 23, 2023
1 parent 85c852c commit fb373ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/modules/k6/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ func (c *Client) parseInvokeParams(paramsVal goja.Value) (*invokeParams, error)
// https://grpc.io/docs/what-is-grpc/core-concepts/#metadata
var strval string
if strings.HasSuffix(hk, "-bin") {
binval, ok := kv.([]byte)
var binval []byte
binval, ok = kv.([]byte)
if !ok {
return result, fmt.Errorf("metadata %q value must be binary", hk)
}
Expand Down

0 comments on commit fb373ca

Please sign in to comment.