Skip to content

Commit

Permalink
Remove unreachable case for err != nil (#75)
Browse files Browse the repository at this point in the history
This PR removes an unreachable case in the Unmarshal function.
  • Loading branch information
JoeTurki authored Jan 24, 2025
1 parent 072ea2b commit 3697adc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/sdp/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func (s *SessionDescription) Unmarshal(raw string) output.Message { //nolint:cyc
// s=
key, value, scanStatus, msg = scanner.nextLine()
switch {
case err != nil:
case msg.Message != "":
return msg
case !scanStatus:
Expand Down

0 comments on commit 3697adc

Please sign in to comment.