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:
parent
0c98949ef8
commit
c179da1d26
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue