1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00

Remove loop condition

Because 'err' is always 'nil' and condition is always 'true'
This commit is contained in:
Sadegh Ramezani 2020-07-10 14:36:41 +04:30
parent 0c98949ef8
commit c179da1d26
No known key found for this signature in database
GPG key ID: CC9BE63BEFB819D6

View file

@ -507,7 +507,7 @@ func (c *Conn) DisconnectNotify() <-chan struct{} {
func (c *Conn) readMessages(ctx context.Context) {
var err error
for err == nil {
for {
var m anyMessage
err = c.stream.ReadObject(&m)
if err != nil {