Skip to content

Commit

Permalink
remove redundant variable declarations (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmini authored Sep 8, 2024
1 parent 6a7be47 commit ab85249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/servers/srt/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (c *conn) runPublishReader(sconn srt.Conn, path defs.Path) error {
}

for {
err := r.Read()
err = r.Read()
if err != nil {
return err
}
Expand Down Expand Up @@ -318,7 +318,7 @@ func (c *conn) runRead(streamID *streamID) error {
case <-c.ctx.Done():
return fmt.Errorf("terminated")

case err := <-writer.Error():
case err = <-writer.Error():
return err
}
}
Expand Down

0 comments on commit ab85249

Please sign in to comment.