Skip to content

Commit 99ea1fe

Browse files
authored
Revert expected body check to allow nil reset (#12)
1 parent c4f3b08 commit 99ea1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func (c *Client) ExpectOtherResponsesBody(body []byte) error {
616616

617617
func (c *Client) checkBody(expected, received []byte, cb func(received []byte) error) (err error) {
618618
if len(received) == 0 {
619-
if len(expected) == 0 && expected != nil {
619+
if len(expected) == 0 {
620620
return nil
621621
}
622622

0 commit comments

Comments
 (0)