Skip to content

Commit

Permalink
fix cond expression referring wrong error variable (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava committed Apr 11, 2022
1 parent a585980 commit 70804b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-put-object-streaming.go
Expand Up @@ -171,7 +171,7 @@ func (c *Client) putObjectMultipartStreamFromReadAt(ctx context.Context, bucketN
}

n, rerr := readFull(io.NewSectionReader(reader, readOffset, partSize), partsBuf[w-1][:partSize])
if rerr != nil && rerr != io.ErrUnexpectedEOF && err != io.EOF {
if rerr != nil && rerr != io.ErrUnexpectedEOF && rerr != io.EOF {
uploadedPartsCh <- uploadedPartRes{
Error: rerr,
}
Expand Down

0 comments on commit 70804b7

Please sign in to comment.