Skip to content

Commit 7e0a43b

Browse files
authored
refactor: simplify channel send by removing unnecessary nil check (#789)
1 parent c9703da commit 7e0a43b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

muxer/muxer.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,8 @@ func (m *Muxer) readLoop() {
333333
)
334334
return
335335
}
336-
if recvChan != nil {
337-
recvChan <- msg
338-
}
336+
recvChan <- msg
337+
339338
// Wait until the muxer is started to continue
340339
// We don't want to read more than one segment until the handshake is complete
341340
if !started {

0 commit comments

Comments
 (0)