Skip to content

Commit

Permalink
Fix duplicate API calls on obj.Stat()
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkhanAlikhanov authored Dec 3, 2024
1 parent de1893f commit d00c312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-get-object.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (o *Object) doGetRequest(request getRequest) (getResponse, error) {
response := <-o.resCh

// Return any error to the top level.
if response.Error != nil {
if response.Error != nil && response.Error != io.EOF {
return response, response.Error
}

Expand All @@ -340,7 +340,7 @@ func (o *Object) doGetRequest(request getRequest) (getResponse, error) {
// Data are ready on the wire, no need to reinitiate connection in lower level
o.seekData = false

return response, nil
return response, response.Error
}

// setOffset - handles the setting of offsets for
Expand Down

0 comments on commit d00c312

Please sign in to comment.