rollback TestServer golint

This commit is contained in:
Cyrille Hemidy 2018-02-20 23:17:51 +01:00
parent 01830654f7
commit 607b1db954
1 changed files with 3 additions and 5 deletions

View File

@ -103,12 +103,10 @@ func (TestServer) StreamingInputCall(str grpc_testing.TestService_StreamingInput
return str.Context().Err()
}
if req, err := str.Recv(); err != nil {
if err != nil {
if err == io.EOF {
break
}
return err
if err == io.EOF {
break
}
return err
} else {
sz += len(req.Payload.Body)
}