registry/resumable/resumablerequestreader.go
Method requestReader.Read
has 7 return statements (exceeds 4 allowed). Open
Open
func (r *requestReader) Read(p []byte) (n int, err error) {
if r.client == nil || r.request == nil {
return 0, fmt.Errorf("client and request can't be nil")
}
isFreshRequest := false
Function NewRequestReaderWithInitialResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser {