Skip to content

Commit e59a983

Browse files
fix(client): correctly update body in WithJSONSet
1 parent dfd870a commit e59a983

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

option/requestoption.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ func WithJSONSet(key string, value interface{}) RequestOption {
182182
if err != nil {
183183
return err
184184
}
185-
return nil
186185
} else {
187186
return fmt.Errorf("cannot use WithJSONSet on a body that is not serialized as *bytes.Buffer")
188187
}

0 commit comments

Comments
 (0)