Skip to content

Commit d9b7adc

Browse files
committed
fix: incorrect conditional
Signed-off-by: mikeee <[email protected]>
1 parent 6e4e765 commit d9b7adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: client/workflow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (c *GRPCClient) StartWorkflowBeta1(ctx context.Context, req *StartWorkflowR
260260

261261
var input []byte
262262
var err error
263-
if (!req.SendRawInput) || (req.Input != nil) {
263+
if (!req.SendRawInput) && (req.Input != nil) {
264264
input, err = json.Marshal(req.Input)
265265
if err != nil {
266266
return nil, fmt.Errorf("failed to marshal input: %v", err)

0 commit comments

Comments
 (0)