meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

janus_streaming: remove always false branch #3098

Closed tmatth closed 2 years ago

tmatth commented 2 years ago

No functional change, this is just for clarity.

Since every branch of the previous if (session->mountpoint != NULL) conditional terminates in either goto error or goto done, there is no case where session->mountpoint will be non-null when arriving at this check.

(cherry picked from commit de77c51eed223efda588e38376a75b72ae8d65fd)

This is a backport of #3096

lminiero commented 2 years ago

Thanks, merging :+1: